[905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 990, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 997, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 994, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 989, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 991, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 987, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 988, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 996, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 998, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 983, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 999, 517, 344, 653, 176, 992, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 993, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 995, 92, 876, 650, 716, 982, 41, 133, 1000] [133, 41, 982, 716, 650, 876, 92, 995, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 993, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 992, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 990, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 997, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 994, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 989, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 991, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 987, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 988, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 996, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 998, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 983, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 999, 1000] [799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 983, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 982, 716, 650, 876, 92, 995, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 993, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 992, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 990, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 997, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 994, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 989, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 991, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 987, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 988, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 996, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 998, 999, 1000] [556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 996, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 984, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 988, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 987, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 986, 447, 473, 399, 639, 391, 458, 360, 979, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 991, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 978, 373, 981, 989, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 994, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 983, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 982, 716, 650, 876, 92, 995, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 993, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 992, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 990, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 997, 998, 999, 1000] [810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 990, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 985, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 980, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 992, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 993, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 995, 92, 876, 650, 716, 982, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 983, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 994, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 989, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 991, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 987, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 988, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 996, 997, 998, 999, 1000] [57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 984, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 988, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 987, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 986, 447, 473, 399, 639, 391, 458, 360, 979, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 991, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 978, 373, 981, 989, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 994, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 983, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 982, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 990, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 985, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 980, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 992, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 993, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 995, 996, 997, 998, 999, 1000] [642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 993, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 992, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 990, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 982, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 983, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 984, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 988, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 987, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 986, 447, 473, 399, 639, 391, 458, 360, 979, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 991, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 978, 373, 981, 989, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 994, 995, 996, 997, 998, 999, 1000] [808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 989, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 991, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 987, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 988, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 983, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 982, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 990, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 985, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 980, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 992, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 993, 994, 995, 996, 997, 998, 999, 1000] [287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 989, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 991, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 987, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 988, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 983, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 982, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 990, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 985, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 980, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 990, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 982, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 983, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 984, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 988, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 987, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 986, 447, 473, 399, 639, 391, 458, 360, 979, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 989, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 978, 373, 981, 989, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 987, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 988, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 983, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 982, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 985, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 980, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 982, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 983, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 984, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 988, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 987, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 986, 447, 473, 399, 639, 391, 458, 360, 979, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 978, 373, 981, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 987, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 985, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 980, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 982, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 983, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 984, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 983, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 982, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 983, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 982, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [447, 473, 399, 639, 391, 458, 360, 979, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 978, 373, 981, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 983, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 982, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 980, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 982, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 983, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 979, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 978, 373, 981, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 980, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 982, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 981, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 980, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 979, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 978, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 978, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 977, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 976, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 975, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 974, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 973, 36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 972, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 971, 36, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [36, 971, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 970, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 969, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 968, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 967, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 36, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 966, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 965, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 964, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 964, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 963, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 962, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 961, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 960, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 959, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 958, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 957, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 957, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 956, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 955, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 954, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 955, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 951, 250, 953, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 250, 951, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 952, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 951, 250, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 250, 951, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 950, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 949, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 948, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 250, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [250, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 947, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 946, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 945, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 944, 763, 752, 59, 361, 229, 900, 145, 469, 503, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 943, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 942, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 941, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 940, 418, 275, 104, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 939, 524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 104, 275, 418, 940, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 938, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 104, 275, 418, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [418, 275, 104, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 938, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 937, 739, 293, 558, 524, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [524, 558, 293, 739, 937, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 936, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 935, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 934, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 933, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 932, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 38, 776, 824, 603, 931, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 930, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 929, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 928, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 927, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 926, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 925, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 924, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 923, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 922, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 921, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 920, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 919, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 920, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 918, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 917, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 916, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 915, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 914, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 913, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 912, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 911, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 911, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 910, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 909, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 908, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 907, 100, 352, 893, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 906, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 907, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 905, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 904, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [100, 352, 893, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 903, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 893, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 902, 688, 714, 611, 383, 283, 896, 882, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 901, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 893, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 882, 896, 283, 383, 611, 714, 688, 902, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 900, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 899, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 882, 896, 283, 383, 611, 714, 688, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [688, 714, 611, 383, 283, 896, 882, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 893, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 896, 882, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 898, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 893, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 896, 882, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 897, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 882, 896, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 893, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 896, 882, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 895, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 894, 571, 259, 882, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 893, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 892, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 891, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 882, 259, 571, 894, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 882, 259, 571, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [571, 259, 882, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 882, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 890, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 882, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 889, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 882, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 888, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 882, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 887, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 882, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 886, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 885, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 886, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 882, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 884, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 882, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 883, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 882, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 882, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 881, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 882, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 880, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 879, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 879, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 878, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 877, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 876, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 875, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 874, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 873, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 872, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 871, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 870, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 869, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 721, 638, 354, 868, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 867, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 869, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 866, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 865, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 864, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 863, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 862, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 861, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 860, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 859, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 858, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 857, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 856, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 855, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 854, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 853, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 852, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 851, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 850, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 849, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 848, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 847, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 846, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 845, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 844, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 843, 65, 220, 427, 560, 33, 393, 12, 54, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 54, 12, 393, 33, 560, 427, 220, 65, 843, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 842, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 841, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 840, 838, 684, 54, 12, 393, 33, 560, 427, 220, 65, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [65, 220, 427, 560, 33, 393, 12, 54, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 838, 840, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 839, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 838, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [838, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 837, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 836, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 835, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 834, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 833, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 832, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 831, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 830, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 829, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 828, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 828, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 827, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 826, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 825, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 824, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 823, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 822, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 821, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 821, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 820, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 819, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 818, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 817, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 816, 487, 375, 380, 642, 309, 178, 815, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 814, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 813, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 178, 309, 642, 380, 375, 487, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 812, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 811, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 810, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 809, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 808, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 807, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 806, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 805, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 804, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 804, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 803, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 802, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 801, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 801, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 800, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 799, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 800, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 799, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 798, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 797, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 796, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 795, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 794, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 793, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 792, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 791, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 790, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 789, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 788, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 787, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 515, 384, 786, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 785, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 784, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 783, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 782, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 781, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 780, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 779, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 780, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 778, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 777, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 776, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 775, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 774, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 774, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 773, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 772, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 771, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 771, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 770, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 769, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 768, 701, 620, 26, 651, 288, 77, 542, 698, 273, 767, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 698, 542, 77, 288, 651, 26, 620, 701, 768, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 766, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 273, 698, 542, 77, 288, 651, 26, 620, 701, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 765, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 764, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 765, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 764, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 763, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 762, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 761, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 760, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 759, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 758, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 753, 294, 612, 254, 73, 219, 206, 757, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 757, 206, 219, 73, 254, 612, 294, 753, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 756, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 755, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 753, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 753, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 755, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 754, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 754, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 753, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 753, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 752, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 751, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 752, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 750, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 749, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 748, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 747, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 746, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 746, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 745, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 744, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 743, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 742, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 741, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 740, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 739, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 738, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 738, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 737, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 737, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 736, 245, 735, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 735, 245, 736, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 734, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 735, 245, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 733, 387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 732, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 732, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 731, 62, 174, 464, 114, 217, 694, 387, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [387, 694, 217, 114, 464, 174, 62, 731, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 730, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 729, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 728, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 387, 694, 217, 114, 464, 174, 62, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [62, 174, 464, 114, 217, 694, 387, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 727, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 726, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 725, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 726, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 724, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 723, 58, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 722, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 723, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 721, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 722, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [58, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 720, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 719, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 718, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 717, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 716, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 715, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 714, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 713, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 712, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 712, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 711, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 710, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 709, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 708, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 707, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 706, 390, 43, 236, 162, 449, 298, 703, 623, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 705, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 623, 703, 298, 449, 162, 236, 43, 390, 706, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 705, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 704, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 623, 703, 298, 449, 162, 236, 43, 390, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [390, 43, 236, 162, 449, 298, 703, 623, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 390, 43, 236, 162, 449, 298, 703, 623, 570, 235, 636, 702, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 701, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 700, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 699, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 390, 43, 236, 162, 449, 298, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [298, 449, 162, 236, 43, 390, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 620, 26, 651, 288, 77, 542, 698, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 697, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 696, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 695, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 694, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 693, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 692, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 691, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 691, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 690, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 690, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 689, 32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 688, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 687, 346, 107, 677, 525, 547, 89, 32, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [32, 89, 547, 525, 677, 107, 346, 687, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 686, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 685, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 684, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 677, 107, 346, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [346, 107, 677, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 677, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 684, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 683, 373, 569, 110, 324, 682, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 681, 482, 480, 658, 675, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 677, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 677, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 324, 110, 569, 373, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 677, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 658, 480, 482, 681, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 680, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 679, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 677, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 658, 480, 482, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [482, 480, 658, 675, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 677, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 678, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 675, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 677, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 677, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 676, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 675, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 674, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 673, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 672, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 671, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 670, 574, 320, 497, 385, 655, 130, 626, 669, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 668, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 667, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 626, 130, 655, 385, 497, 320, 574, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [574, 320, 497, 385, 655, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 666, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 655, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 665, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 655, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 664, 597, 323, 604, 46, 251, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 655, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 663, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 662, 512, 213, 540, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 664, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 655, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 661, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 655, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 655, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 540, 213, 512, 662, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 655, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 660, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 540, 213, 512, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [512, 213, 540, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 655, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 659, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 659, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 658, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 657, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 655, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 655, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 655, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 656, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 655, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 655, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 654, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 653, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 652, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 651, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 650, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 649, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 648, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 647, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 646, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 645, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 644, 386, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 644, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 643, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 642, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 641, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 641, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 640, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 639, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 638, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 640, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 637, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 636, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 635, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 634, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 633, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 632, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 632, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 631, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 630, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 629, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 628, 36, 13, 415, 623, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 630, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 627, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 626, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 623, 415, 13, 36, 628, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 625, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 623, 415, 13, 36, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [36, 13, 415, 623, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 623, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 624, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 623, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 623, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 622, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 621, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 183, 610, 26, 620, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 619, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 26, 610, 183, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 183, 610, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 618, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 617, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 616, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 615, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 614, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 183, 610, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 610, 183, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 610, 183, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 616, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 613, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 610, 183, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 610, 183, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 610, 183, 329, 5, 166, 394, 544, 294, 612, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 294, 544, 394, 166, 5, 329, 183, 610, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 611, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 610, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 610, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 609, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 608, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 607, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 509, 606, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 605, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 509, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 604, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 603, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 602, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 602, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 601, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 600, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 599, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 598, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 597, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 596, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 595, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 595, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 594, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 593, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 574, 320, 497, 385, 176, 142, 144, 592, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 591, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 574, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 590, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 589, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 588, 204, 29, 333, 319, 119, 510, 587, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 574, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 586, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 510, 119, 319, 333, 29, 204, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 585, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 574, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 584, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 583, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 582, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 574, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 583, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 581, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 580, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 579, 134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 574, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 574, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 578, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 574, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 577, 237, 419, 234, 134, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [134, 234, 419, 237, 577, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 576, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 575, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 576, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 574, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 573, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 572, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 571, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 570, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 569, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 568, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 567, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 445, 104, 275, 418, 265, 273, 102, 566, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 565, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 564, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 563, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 562, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 561, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 561, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 560, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 560, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 559, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 558, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 557, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 556, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 555, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 554, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 553, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 552, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 551, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 550, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 549, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 540, 398, 112, 369, 548, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 548, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 547, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 540, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 546, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 545, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 544, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 543, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 540, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 542, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 541, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 540, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 539, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 538, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 537, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 536, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 540, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 535, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 357, 92, 315, 270, 525, 38, 53, 80, 321, 454, 258, 221, 16, 534, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 533, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 532, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 525, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 531, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 525, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 525, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 530, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 529, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 528, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 527, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 525, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 526, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 525, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 524, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 525, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 524, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 523, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 523, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 522, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 521, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 515, 384, 208, 348, 116, 364, 520, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 520, 364, 116, 348, 208, 384, 515, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 519, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 515, 384, 208, 348, 116, 364, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 518, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 517, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 364, 116, 348, 208, 384, 515, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 515, 384, 208, 348, 116, 364, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 516, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 515, 384, 208, 348, 116, 364, 150, 514, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 513, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 364, 116, 348, 208, 384, 515, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 512, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 150, 364, 116, 348, 208, 384, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 511, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 511, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 510, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 509, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 509, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 508, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 507, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 507, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 506, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 505, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 506, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 504, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 503, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 502, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 502, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 101, 492, 164, 459, 494, 354, 438, 306, 501, 425, 310, 373, 279, 10, 500, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 499, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 306, 438, 354, 494, 459, 164, 492, 101, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 498, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 101, 492, 164, 459, 494, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 10, 279, 373, 310, 425, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 101, 492, 164, 459, 494, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 497, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 496, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 101, 492, 164, 459, 494, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 495, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 494, 459, 164, 492, 101, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 494, 459, 164, 492, 101, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 495, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 494, 459, 164, 492, 101, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 101, 492, 164, 459, 494, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 493, 374, 227, 340, 422, 144, 142, 176, 385, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [385, 176, 142, 144, 422, 340, 227, 374, 493, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 101, 492, 164, 459, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [459, 164, 492, 101, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 491, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 490, 103, 18, 145, 469, 101, 459, 164, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [164, 459, 101, 469, 145, 18, 103, 490, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 489, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 488, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 164, 459, 101, 469, 145, 18, 103, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 487, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 486, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 485, 42, 118, 168, 210, 68, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 164, 459, 101, 469, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 484, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 483, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 482, 6, 316, 194, 27, 242, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 68, 210, 168, 118, 42, 485, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 164, 459, 101, 469, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 481, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 68, 210, 168, 118, 42, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [42, 118, 168, 210, 68, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 482, 480, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 479, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 164, 459, 101, 469, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 478, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 164, 459, 101, 469, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 477, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 476, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 475, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 164, 459, 101, 469, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 474, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 164, 459, 101, 469, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 473, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 473, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 472, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 471, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 164, 459, 101, 469, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 470, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 182, 442, 85, 164, 459, 101, 469, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 468, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 101, 459, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 459, 101, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 467, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 466, 301, 229, 361, 59, 424, 461, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 459, 101, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 465, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 101, 459, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 461, 424, 59, 361, 229, 301, 466, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 464, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 101, 459, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 461, 424, 59, 361, 229, 301, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [301, 229, 361, 59, 424, 461, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 459, 101, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 452, 96, 70, 463, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 70, 96, 452, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 462, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 461, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 459, 101, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 101, 459, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 461, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 452, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 452, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 101, 459, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 461, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 460, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 452, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 101, 459, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 459, 101, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 458, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 452, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 452, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 457, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 456, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 452, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 455, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 452, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 456, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 452, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 454, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 453, 212, 226, 371, 448, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 452, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 452, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 453, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 452, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 451, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [212, 226, 371, 448, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 450, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 449, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 212, 226, 371, 448, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 371, 226, 212, 76, 447, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 446, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 445, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 444, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 443, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 442, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 441, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 440, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 439, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 438, 354, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 439, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 314, 406, 395, 146, 238, 260, 40, 437, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 438, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 437, 40, 260, 238, 146, 395, 406, 314, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 436, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 431, 430, 149, 435, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 149, 430, 431, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 434, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 434, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 433, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 432, 429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 431, 430, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 430, 431, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 430, 431, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 430, 431, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [429, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 428, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 427, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 428, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 427, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 426, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 425, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 424, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 423, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 422, 144, 142, 176, 385, 402, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 423, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 422, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 421, 123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 420, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 419, 234, 134, 417, 413, 267, 123, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [123, 267, 413, 417, 134, 234, 419, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 418, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 413, 417, 134, 234, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [234, 134, 417, 413, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 416, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 415, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 413, 234, 134, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [134, 234, 413, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 414, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 413, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 412, 295, 136, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 413, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 411, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 410, 257, 358, 308, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 412, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 409, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 308, 358, 257, 410, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 408, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 407, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 406, 314, 167, 75, 308, 358, 257, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [257, 358, 308, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 405, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 406, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 405, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 404, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 403, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 402, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 401, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 385, 176, 142, 144, 400, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 399, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 398, 52, 179, 359, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 144, 142, 176, 385, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 385, 176, 142, 144, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 397, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 385, 176, 142, 144, 359, 179, 52, 398, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 396, 327, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 395, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 388, 111, 353, 394, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 385, 176, 142, 144, 359, 179, 52, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [52, 179, 359, 144, 142, 176, 385, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 327, 396, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 52, 179, 359, 144, 142, 176, 385, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 393, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 327, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [327, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 52, 179, 359, 144, 142, 176, 385, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 388, 111, 353, 327, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 392, 9, 253, 52, 179, 359, 144, 142, 176, 385, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 385, 176, 142, 144, 359, 179, 52, 253, 9, 392, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 388, 111, 353, 327, 200, 203, 241, 284, 283, 383, 391, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 383, 283, 284, 241, 203, 200, 327, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 390, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 389, 57, 105, 385, 176, 142, 144, 359, 179, 52, 253, 9, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [9, 253, 52, 179, 359, 144, 142, 176, 385, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 388, 111, 353, 327, 200, 203, 241, 284, 283, 383, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 383, 283, 284, 241, 203, 200, 327, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 385, 105, 57, 389, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 383, 283, 284, 241, 203, 200, 327, 353, 111, 388, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 387, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 385, 105, 57, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [57, 105, 385, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 386, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 383, 283, 284, 241, 203, 200, 327, 353, 111, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [111, 353, 327, 200, 203, 241, 284, 283, 383, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 385, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 385, 105, 57, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 384, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 383, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 383, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 383, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 382, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 381, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 380, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 379, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 378, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 357, 92, 315, 270, 188, 41, 133, 377, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 368, 302, 305, 376, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 375, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 133, 41, 188, 270, 315, 92, 357, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 305, 302, 368, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 374, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 368, 302, 305, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 375, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 373, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 368, 302, 305, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 372, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 133, 41, 188, 270, 315, 92, 357, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 305, 302, 368, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 133, 41, 188, 270, 315, 92, 357, 286, 184, 372, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 371, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 305, 302, 368, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 368, 302, 305, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 370, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 369, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 133, 41, 188, 270, 315, 92, 357, 286, 184, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 368, 302, 305, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 305, 302, 368, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 305, 302, 368, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 367, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 367, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 133, 41, 188, 270, 315, 92, 357, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 366, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 305, 302, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [302, 305, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 365, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 364, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 133, 41, 188, 270, 315, 92, 357, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 363, 307, 230, 109, 17, 139, 360, 216, 24, 133, 41, 188, 270, 315, 92, 357, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 360, 139, 17, 109, 230, 307, 363, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 362, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 362, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 361, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 360, 139, 17, 109, 230, 307, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [307, 230, 109, 17, 139, 360, 216, 24, 133, 41, 188, 270, 315, 92, 357, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 361, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 360, 216, 24, 133, 41, 188, 270, 315, 92, 357, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 359, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 358, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 357, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 356, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 357, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 355, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 354, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 354, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 353, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 352, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 351, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 350, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 94, 81, 173, 189, 347, 191, 349, 192, 343, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 348, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 343, 192, 349, 191, 347, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 347, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 348, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 346, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 345, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 344, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 343, 192, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [192, 343, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 347, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 343, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 211, 342, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 343, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 159, 170, 33, 99, 180, 323, 263, 345, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 341, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 343, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 344, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 159, 170, 33, 99, 180, 323, 263, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 343, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 211, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [192, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 341, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 340, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 339, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 338, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 159, 170, 33, 99, 180, 323, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 337, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 338, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 336, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 159, 170, 33, 99, 180, 323, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 336, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 335, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 335, 58, 235, 334, 199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 159, 170, 33, 99, 180, 323, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 333, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 332, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 331, 143, 196, 152, 218, 306, 55, 199, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 330, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 329, 183, 100, 159, 170, 33, 99, 180, 323, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 328, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 331, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 330, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 327, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [183, 100, 159, 170, 33, 99, 180, 323, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 326, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 222, 326, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 325, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 323, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 324, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 222, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 323, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 323, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 7, 247, 243, 302, 305, 322, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 305, 302, 243, 247, 7, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 11, 38, 53, 80, 321, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 80, 53, 38, 11, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 320, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 319, 7, 247, 243, 302, 305, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 305, 302, 243, 247, 7, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 320, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 318, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 305, 302, 243, 247, 7, 319, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 317, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 56, 6, 316, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 315, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 305, 302, 243, 247, 7, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [7, 247, 243, 302, 305, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 305, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 6, 56, 289, 195, 157, 285, 108, 249, 276, 314, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 305, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 313, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 312, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 305, 54, 12, 146, 238, 260, 40, 150, 15, 311, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 310, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 305, 302, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 313, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 305, 302, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 201, 193, 184, 286, 178, 309, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 15, 150, 40, 260, 238, 146, 12, 54, 305, 302, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 305, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 305, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 309, 178, 286, 184, 193, 201, 167, 75, 308, 139, 17, 109, 230, 307, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 306, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 305, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 304, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 305, 302, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 230, 109, 17, 139, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 305, 302, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 303, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 305, 302, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 304, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 229, 301, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 301, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 300, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 299, 86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 298, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 297, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 296, 287, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 295, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 296, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 294, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [287, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 293, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 292, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 291, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 290, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 287, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 292, 257, 149, 197, 6, 56, 289, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 56, 6, 197, 149, 257, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 77, 288, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 77, 287, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 286, 178, 280, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 285, 157, 195, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 77, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 77, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 280, 178, 286, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 284, 283, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 77, 195, 157, 285, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 280, 178, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [178, 280, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 282, 181, 130, 36, 13, 134, 234, 136, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 77, 195, 157, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [157, 195, 77, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 280, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [157, 195, 77, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 282, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 280, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 281, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 280, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [181, 130, 36, 13, 134, 234, 136, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 280, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 279, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 278, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 277, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 276, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 108, 249, 276, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 275, 259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 259, 275, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 274, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 108, 249, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 45, 154, 111, 79, 224, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 273, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 259, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 272, 268, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 268, 272, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 271, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 270, 188, 41, 133, 24, 216, 266, 265, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 271, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 259, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 268, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [268, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 265, 266, 216, 24, 133, 41, 188, 270, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 269, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 268, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 265, 266, 216, 24, 133, 41, 188, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [188, 41, 133, 24, 216, 266, 265, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 259, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 268, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 267, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 188, 41, 133, 24, 216, 266, 265, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 259, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 265, 266, 216, 24, 133, 41, 188, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 264, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 263, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 262, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 259, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 263, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 261, 229, 120, 255, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 259, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 262, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 261, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 260, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 259, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 258, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [229, 120, 255, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 259, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 229, 120, 255, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 258, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 257, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 256, 126, 49, 246, 157, 195, 77, 30, 245, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 229, 120, 255, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 256, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 254, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 120, 229, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 253, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [126, 49, 246, 157, 195, 77, 30, 245, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 252, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 246, 157, 195, 77, 30, 245, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 251, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 246, 157, 195, 77, 30, 245, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 250, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 251, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 198, 108, 249, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 250, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 248, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 246, 157, 195, 77, 30, 245, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 108, 198, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 247, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 246, 157, 195, 77, 30, 245, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 244, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 30, 77, 195, 157, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [157, 195, 77, 30, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 243, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 243, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 242, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 241, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 240, 113, 224, 79, 111, 154, 45, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 239, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 113, 240, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 238, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 113, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [113, 224, 79, 111, 154, 45, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 237, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 113, 224, 79, 111, 154, 45, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 236, 43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 236, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 113, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 235, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 113, 224, 79, 111, 154, 45, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 234, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 233, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 113, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 225, 217, 114, 71, 232, 207, 85, 164, 65, 220, 228, 141, 211, 116, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 113, 224, 79, 111, 154, 45, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 231, 121, 110, 222, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 71, 114, 217, 225, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 230, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 113, 224, 79, 111, 154, 45, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 113, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 225, 217, 114, 71, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 222, 110, 121, 231, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 228, 220, 65, 164, 85, 207, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [207, 85, 164, 65, 220, 228, 141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 113, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 225, 217, 114, 71, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 229, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 222, 110, 121, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [121, 110, 222, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 71, 114, 217, 225, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 207, 85, 164, 65, 220, 228, 141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 113, 221, 16, 227, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 113, 224, 79, 111, 154, 45, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 228, 220, 65, 164, 85, 207, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 225, 217, 114, 71, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 222, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 222, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 71, 114, 217, 225, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 207, 85, 164, 65, 220, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 16, 221, 113, 224, 79, 111, 154, 45, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 226, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 226, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 113, 221, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 222, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 71, 114, 217, 225, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 207, 85, 164, 65, 220, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 220, 65, 164, 85, 207, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 225, 217, 114, 71, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 222, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 221, 113, 224, 79, 111, 154, 45, 178, 223, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 113, 221, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 222, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 71, 114, 217, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 220, 65, 164, 85, 207, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 207, 85, 164, 65, 220, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 217, 114, 71, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 222, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 221, 113, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 178, 45, 154, 111, 79, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 207, 85, 164, 65, 220, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 217, 114, 71, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 222, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 221, 113, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 113, 221, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 207, 85, 164, 65, 220, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 217, 114, 71, 134, 13, 36, 130, 181, 90, 206, 219, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 71, 114, 217, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 220, 65, 164, 85, 207, 109, 17, 139, 218, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 113, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [113, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 207, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 206, 90, 181, 130, 36, 13, 134, 71, 114, 217, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 217, 114, 71, 134, 13, 36, 130, 181, 90, 206, 113, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 139, 17, 109, 207, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 207, 109, 17, 139, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 217, 114, 71, 134, 13, 36, 130, 181, 90, 206, 113, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 216, 205, 27, 194, 106, 166, 5, 143, 196, 152, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 215, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 113, 206, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 207, 109, 17, 139, 163, 165, 10, 40, 150, 15, 214, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 213, 153, 174, 62, 209, 60, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 139, 17, 109, 207, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 206, 113, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 205, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [205, 27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 15, 150, 40, 10, 165, 163, 139, 17, 109, 207, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 206, 113, 212, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 211, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 113, 206, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 207, 109, 17, 139, 163, 165, 10, 40, 150, 15, 205, 27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 209, 62, 174, 153, 213, 187, 202, 69, 137, 148, 190, 123, 68, 210, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 113, 206, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 207, 109, 17, 139, 163, 165, 10, 40, 150, 15, 205, 27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 209, 62, 174, 153, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [153, 174, 62, 209, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 205, 15, 150, 40, 10, 165, 163, 139, 17, 109, 207, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 206, 113, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 211, 116, 138, 124, 156, 186, 28, 161, 117, 208, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 209, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 205, 15, 150, 40, 10, 165, 163, 139, 17, 109, 207, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 206, 113, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 68, 123, 190, 148, 137, 69, 202, 187, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 187, 202, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 209, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 205, 15, 150, 40, 10, 165, 163, 139, 17, 109, 207, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 206, 113, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 113, 206, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 207, 109, 17, 139, 163, 165, 10, 40, 150, 15, 205, 27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 187, 202, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 113, 206, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 207, 109, 17, 139, 163, 165, 10, 40, 150, 15, 205, 27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 187, 202, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 190, 148, 137, 69, 202, 187, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 205, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 113, 206, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 190, 148, 137, 69, 202, 187, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 205, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 204, 29, 37, 113, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [113, 37, 29, 204, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 190, 148, 137, 69, 202, 187, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 203, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 187, 202, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 190, 148, 137, 69, 202, 187, 61, 171, 158, 107, 184, 193, 201, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 200, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 201, 193, 184, 107, 158, 171, 61, 187, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 199, 55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 190, 148, 137, 69, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 187, 61, 171, 158, 107, 184, 193, 200, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 198, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 199, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 187, 61, 171, 158, 107, 184, 193, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [193, 184, 107, 158, 171, 61, 187, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 197, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 197, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 190, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 196, 143, 5, 166, 106, 194, 27, 8, 91, 51, 157, 195, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 193, 184, 107, 158, 171, 61, 187, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 187, 61, 171, 158, 107, 184, 193, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 27, 194, 106, 166, 5, 143, 196, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 190, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 187, 61, 171, 158, 107, 184, 193, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 157, 51, 91, 8, 27, 194, 106, 166, 5, 143, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [143, 5, 166, 106, 194, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 190, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 187, 61, 171, 158, 107, 184, 193, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 193, 184, 107, 158, 171, 61, 187, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 192, 191, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 190, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 189, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 187, 61, 171, 158, 107, 184, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 184, 107, 158, 171, 61, 187, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 184, 107, 158, 171, 61, 187, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 190, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 184, 107, 158, 171, 61, 187, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 188, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 184, 107, 158, 171, 61, 187, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 187, 61, 171, 158, 107, 184, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 186, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 185, 20, 88, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 186, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 184, 107, 158, 171, 61, 173, 81, 94, 183, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 61, 171, 158, 107, 184, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 88, 20, 185, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 61, 171, 158, 107, 184, 77, 30, 7, 104, 58, 64, 25, 125, 182, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 88, 20, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [20, 88, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 94, 81, 173, 61, 171, 158, 107, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [107, 158, 171, 61, 173, 81, 94, 20, 88, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 181, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 180, 99, 33, 170, 159, 100, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 181, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 171, 61, 173, 81, 94, 20, 88, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 88, 20, 94, 81, 173, 61, 171, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 170, 33, 99, 180, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 169, 92, 179, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 178, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 88, 20, 94, 81, 173, 61, 171, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 170, 33, 99, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [99, 33, 170, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 171, 61, 173, 81, 94, 20, 88, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 151, 19, 89, 32, 177, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 169, 92, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 32, 89, 19, 151, 29, 37, 113, 160, 132, 176, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 170, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 171, 61, 173, 81, 94, 20, 88, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 88, 20, 94, 81, 173, 61, 171, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 170, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 132, 160, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 175, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 169, 92, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 160, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 174, 153, 116, 138, 124, 156, 88, 20, 94, 81, 173, 61, 171, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 172, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 170, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 170, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 171, 61, 173, 81, 94, 20, 88, 156, 124, 138, 116, 153, 174, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 160, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 169, 92, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 160, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 170, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 171, 61, 173, 81, 94, 20, 88, 156, 124, 138, 116, 153, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 160, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 170, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 171, 61, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [61, 171, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 160, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 170, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 170, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 160, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 169, 92, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 156, 124, 138, 116, 153, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 168, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 61, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [61, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 169, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 160, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 142, 144, 59, 67, 3, 167, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 160, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [92, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 156, 124, 138, 116, 153, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 3, 67, 59, 144, 142, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 166, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 160, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 160, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 165, 163, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 156, 124, 138, 116, 153, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 163, 165, 10, 40, 150, 15, 85, 164, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 160, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 160, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 85, 15, 150, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 163, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [163, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 162, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 156, 124, 138, 116, 153, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 150, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 160, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 161, 117, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 160, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 150, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 162, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 117, 161, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 160, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 150, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 159, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 156, 124, 138, 116, 153, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 150, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 160, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 158, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 149, 157, 51, 91, 8, 27, 143, 5, 117, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [117, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 156, 124, 138, 116, 153, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 159, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 150, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 150, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 156, 124, 138, 116, 153, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 150, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 143, 27, 8, 91, 51, 157, 149, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 149, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 155, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 154, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 150, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 143, 27, 8, 91, 51, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [51, 91, 8, 27, 143, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 150, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 149, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 153, 116, 138, 124, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [124, 138, 116, 153, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 149, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 51, 91, 8, 27, 143, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 150, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 152, 24, 133, 41, 148, 137, 69, 131, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 124, 138, 116, 153, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 149, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 113, 37, 29, 151, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 51, 91, 8, 27, 143, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 150, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 150, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 143, 27, 8, 91, 51, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 149, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 131, 69, 137, 148, 41, 133, 24, 152, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 124, 138, 116, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [116, 138, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 150, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 143, 27, 8, 91, 51, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 29, 37, 113, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 149, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 131, 69, 137, 148, 41, 133, 24, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [24, 133, 41, 148, 137, 69, 131, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 149, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 113, 37, 29, 116, 138, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 150, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 143, 27, 8, 91, 51, 1, 82, 23, 147, 14, 115, 46, 52, 32, 89, 19, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 51, 91, 8, 27, 143, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 24, 133, 41, 148, 137, 69, 131, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 149, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 146, 113, 37, 29, 116, 138, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 124, 138, 116, 29, 37, 113, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 51, 91, 8, 27, 143, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 24, 133, 41, 148, 137, 69, 131, 83, 122, 44, 112, 48, 31, 145, 18, 103, 87, 56, 6, 55, 42, 118, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 131, 69, 137, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 124, 138, 116, 29, 37, 113, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 147, 23, 82, 1, 51, 91, 8, 27, 143, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 24, 133, 41, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [41, 133, 24, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 143, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 131, 69, 137, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 124, 138, 116, 29, 37, 113, 146, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 142, 144, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 24, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 143, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 145, 31, 48, 112, 44, 122, 83, 131, 69, 137, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 124, 138, 116, 29, 37, 113, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [113, 37, 29, 116, 138, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 137, 69, 131, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 24, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 143, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 143, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 24, 133, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 142, 113, 37, 29, 116, 138, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 137, 69, 131, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 122, 83, 131, 69, 137, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 124, 138, 116, 29, 37, 113, 142, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 24, 40, 10, 75, 141, 60, 140, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 75, 10, 40, 24, 133, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 139, 17, 109, 62, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 122, 83, 131, 69, 137, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 124, 138, 116, 29, 37, 113, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [113, 37, 29, 116, 138, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 137, 69, 131, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 60, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [60, 113, 37, 29, 116, 138, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 137, 69, 131, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 139, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 133, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 138, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 137, 69, 131, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [17, 109, 62, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 122, 83, 131, 69, 137, 15, 85, 106, 9, 43, 136, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 135, 78, 4, 61, 132, 45, 124, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 134, 13, 36, 130, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 133, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 122, 83, 131, 69, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [69, 131, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 124, 45, 132, 61, 4, 78, 135, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 69, 131, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 130, 36, 13, 134, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 124, 45, 132, 61, 4, 78, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [78, 4, 61, 132, 45, 124, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 69, 131, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 130, 36, 13, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [13, 36, 130, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 132, 45, 124, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 69, 131, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 122, 83, 131, 69, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 124, 45, 13, 36, 130, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 130, 36, 13, 45, 124, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 50, 102, 26, 128, 79, 111, 108, 129, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 122, 83, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 129, 108, 111, 79, 128, 26, 102, 50, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 127, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 124, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 124, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 50, 102, 26, 128, 79, 111, 108, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 122, 83, 108, 111, 79, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 124, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 126, 73, 114, 71, 50, 102, 26, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [26, 102, 50, 71, 114, 73, 126, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 125, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 122, 83, 108, 111, 79, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 124, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 124, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 79, 111, 108, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 125, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 26, 102, 50, 71, 114, 73, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [73, 114, 71, 50, 102, 26, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 124, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 79, 111, 108, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 123, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 123, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 122, 83, 108, 111, 79, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 114, 71, 50, 102, 26, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 26, 102, 50, 71, 114, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 79, 111, 108, 83, 122, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 110, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 68, 76, 65, 110, 121, 120, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 119, 96, 70, 49, 26, 102, 50, 71, 114, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 118, 42, 55, 6, 56, 87, 103, 18, 5, 117, 100, 79, 111, 108, 83, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [83, 108, 111, 79, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 114, 71, 50, 102, 26, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 116, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 68, 76, 65, 110, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [110, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 83, 108, 111, 79, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 114, 71, 50, 102, 26, 49, 70, 96, 119, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 112, 48, 31, 14, 115, 46, 52, 32, 89, 19, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 110, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 83, 108, 111, 79, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 114, 71, 50, 102, 26, 49, 70, 96, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [96, 70, 49, 26, 102, 50, 71, 114, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 110, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 83, 108, 111, 79, 100, 117, 5, 18, 103, 87, 56, 6, 55, 42, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [42, 55, 6, 56, 87, 103, 18, 5, 96, 70, 49, 26, 102, 50, 71, 114, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 110, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 83, 108, 111, 79, 100, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [100, 79, 111, 108, 83, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 42, 55, 6, 56, 87, 103, 18, 5, 96, 70, 49, 26, 102, 50, 71, 114, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 115, 14, 31, 48, 112, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 110, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 113, 37, 29, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 68, 76, 65, 110, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 112, 48, 31, 14, 100, 79, 111, 108, 83, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 42, 55, 6, 56, 87, 103, 18, 5, 96, 70, 49, 26, 102, 50, 71, 114, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 113, 60, 28, 77, 30, 7, 104, 58, 64, 25, 68, 76, 65, 110, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 112, 48, 31, 14, 100, 79, 111, 108, 83, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 42, 55, 6, 56, 87, 103, 18, 5, 96, 70, 49, 26, 102, 50, 71, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [71, 50, 102, 26, 49, 70, 96, 5, 18, 103, 87, 56, 6, 55, 42, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 83, 108, 111, 79, 100, 14, 31, 48, 112, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 110, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 104, 58, 64, 25, 68, 76, 65, 110, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 71, 50, 102, 26, 49, 70, 96, 5, 18, 103, 87, 56, 6, 55, 42, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 83, 108, 111, 79, 100, 14, 31, 48, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [48, 31, 14, 100, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 104, 58, 64, 25, 68, 76, 65, 110, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 71, 50, 102, 26, 49, 70, 96, 5, 18, 103, 87, 56, 6, 55, 42, 43, 9, 106, 85, 15, 17, 109, 62, 59, 67, 3, 92, 90, 86, 83, 108, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [108, 83, 86, 90, 92, 3, 67, 59, 62, 109, 17, 15, 85, 106, 9, 43, 42, 55, 6, 56, 87, 103, 18, 5, 96, 70, 49, 26, 102, 50, 71, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 107, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 48, 31, 14, 100, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 104, 58, 64, 25, 68, 76, 65, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 100, 14, 31, 48, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 71, 50, 102, 26, 49, 70, 96, 5, 18, 103, 87, 56, 6, 55, 42, 43, 9, 106, 85, 15, 17, 108, 83, 86, 90, 92, 3, 67, 59, 62, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [62, 59, 67, 3, 92, 90, 86, 83, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 100, 14, 31, 48, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 71, 50, 102, 26, 49, 70, 96, 5, 18, 103, 87, 56, 6, 55, 42, 43, 9, 106, 85, 15, 17, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [17, 15, 85, 106, 9, 43, 42, 55, 6, 56, 87, 103, 18, 5, 96, 70, 49, 26, 102, 50, 71, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 62, 59, 67, 3, 92, 90, 86, 83, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 100, 14, 31, 48, 98, 34, 72, 93, 105, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 93, 72, 34, 98, 48, 31, 14, 100, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 104, 58, 64, 25, 68, 76, 65, 83, 86, 90, 92, 3, 67, 59, 62, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 71, 50, 102, 26, 49, 70, 96, 5, 18, 103, 87, 56, 6, 55, 42, 43, 9, 17, 15, 85, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 103, 18, 5, 96, 70, 49, 26, 102, 50, 71, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 62, 59, 67, 3, 92, 90, 86, 83, 65, 76, 68, 25, 64, 58, 104, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 100, 14, 31, 48, 98, 34, 72, 93, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 93, 72, 34, 98, 48, 31, 14, 100, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 103, 18, 5, 96, 70, 49, 26, 102, 50, 71, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 62, 59, 67, 3, 92, 90, 86, 83, 65, 76, 68, 25, 64, 58, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [58, 64, 25, 68, 76, 65, 83, 86, 90, 92, 3, 67, 59, 62, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 71, 50, 102, 26, 49, 70, 96, 5, 18, 57, 101, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 93, 72, 34, 98, 48, 31, 14, 100, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [87, 56, 6, 55, 42, 43, 9, 17, 15, 85, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 100, 14, 31, 48, 98, 34, 72, 93, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 57, 18, 5, 96, 70, 49, 26, 58, 64, 25, 68, 76, 65, 83, 86, 90, 92, 3, 67, 59, 62, 2, 33, 99, 80, 53, 38, 11, 39, 97, 95, 44, 71, 50, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [50, 71, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 62, 59, 67, 3, 92, 90, 86, 83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 96, 5, 18, 57, 87, 56, 6, 55, 42, 43, 9, 17, 15, 85, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 100, 14, 31, 48, 98, 34, 72, 93, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 93, 72, 34, 98, 48, 31, 14, 50, 71, 44, 95, 97, 39, 11, 38, 53, 80, 99, 33, 2, 62, 59, 67, 3, 92, 90, 86, 83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 96, 5, 18, 57, 87, 56, 6, 55, 42, 43, 9, 17, 15, 85, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 57, 18, 5, 96, 70, 49, 26, 58, 64, 25, 68, 76, 65, 83, 86, 90, 92, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 93, 72, 34, 98, 48, 31, 14, 50, 71, 44, 95, 97, 39, 11, 38, 53, 80, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [80, 53, 38, 11, 39, 97, 95, 44, 71, 50, 14, 31, 48, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 57, 18, 5, 96, 70, 49, 26, 58, 64, 25, 68, 76, 65, 83, 86, 90, 92, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 93, 72, 34, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [34, 72, 93, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 92, 90, 86, 83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 96, 5, 18, 57, 87, 56, 6, 55, 42, 43, 9, 17, 15, 85, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 95, 80, 53, 38, 11, 39, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [39, 11, 38, 53, 80, 95, 44, 71, 50, 14, 31, 48, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 57, 18, 5, 34, 72, 93, 88, 20, 94, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 92, 90, 86, 83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [70, 49, 26, 58, 64, 25, 68, 76, 65, 83, 86, 90, 92, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 20, 88, 93, 72, 34, 5, 18, 57, 87, 56, 6, 55, 42, 43, 9, 17, 15, 85, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 80, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [80, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 57, 18, 5, 34, 72, 93, 88, 20, 70, 49, 26, 58, 64, 25, 68, 76, 65, 83, 86, 90, 92, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 92, 90, 86, 83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 88, 80, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 91, 51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 57, 18, 5, 34, 72, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [72, 34, 5, 18, 57, 87, 56, 6, 55, 42, 43, 9, 17, 15, 85, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 80, 88, 20, 70, 49, 26, 58, 64, 25, 68, 76, 65, 83, 86, 90, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 90, 86, 83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 88, 80, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 72, 34, 5, 18, 57, 87, 56, 6, 55, 42, 43, 9, 17, 15, 85, 7, 30, 77, 28, 60, 46, 52, 32, 89, 19, 23, 82, 1, 51, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [51, 1, 82, 23, 19, 89, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 57, 18, 5, 34, 72, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 80, 88, 20, 70, 49, 26, 58, 64, 25, 68, 76, 65, 83, 86, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 86, 83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 88, 80, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 72, 34, 5, 18, 57, 87, 56, 6, 55, 42, 43, 9, 17, 15, 85, 7, 30, 77, 28, 60, 46, 52, 32, 51, 1, 82, 23, 19, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [19, 23, 82, 1, 51, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 57, 18, 5, 34, 72, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 80, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 86, 83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [20, 70, 49, 26, 58, 64, 25, 68, 76, 65, 83, 86, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 80, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 72, 34, 5, 18, 57, 19, 23, 82, 1, 51, 32, 52, 46, 60, 28, 77, 30, 7, 85, 15, 17, 9, 43, 42, 55, 6, 56, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [56, 6, 55, 42, 43, 9, 17, 15, 85, 7, 30, 77, 28, 60, 46, 52, 32, 51, 1, 82, 23, 19, 57, 18, 5, 34, 72, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 80, 81, 21, 84, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 20, 70, 49, 26, 58, 64, 25, 68, 76, 65, 83, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 21, 81, 80, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 72, 34, 5, 18, 57, 19, 23, 82, 1, 51, 32, 52, 46, 60, 28, 77, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 77, 28, 60, 46, 52, 32, 51, 1, 82, 23, 19, 57, 18, 5, 34, 72, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 80, 81, 21, 83, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 20, 70, 49, 26, 58, 64, 25, 68, 76, 65, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 77, 28, 60, 46, 52, 32, 51, 1, 82, 23, 19, 57, 18, 5, 34, 72, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 80, 81, 21, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [21, 81, 80, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 79, 37, 29, 73, 45, 13, 36, 61, 4, 78, 24, 40, 10, 75, 27, 8, 72, 34, 5, 18, 57, 19, 23, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 20, 70, 49, 26, 58, 64, 25, 68, 76, 65, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 77, 28, 60, 46, 52, 32, 51, 1, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [1, 51, 32, 52, 46, 60, 28, 77, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 23, 19, 57, 18, 5, 34, 72, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 80, 21, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [21, 1, 51, 32, 52, 46, 60, 28, 77, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 23, 19, 57, 18, 5, 34, 72, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 77, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 23, 19, 57, 18, 5, 34, 72, 8, 27, 75, 10, 40, 24, 78, 4, 61, 36, 13, 45, 73, 29, 37, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [37, 29, 73, 45, 13, 36, 61, 4, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 77, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 65, 76, 68, 25, 64, 58, 26, 49, 70, 20, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 23, 19, 57, 18, 5, 34, 72, 8, 27, 75, 10, 40, 24, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [24, 40, 10, 75, 27, 8, 72, 34, 5, 18, 57, 19, 23, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 20, 70, 49, 26, 58, 64, 25, 68, 76, 65, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 73, 45, 13, 36, 61, 4, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [28, 60, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 4, 61, 36, 13, 45, 73, 29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 65, 24, 40, 10, 75, 27, 8, 72, 34, 5, 18, 57, 19, 23, 22, 66, 54, 12, 41, 69, 47, 16, 74, 35, 63, 33, 2, 62, 59, 67, 3, 20, 70, 49, 26, 58, 64, 25, 68, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [68, 25, 64, 58, 26, 49, 70, 20, 3, 67, 59, 62, 2, 33, 63, 35, 74, 16, 47, 69, 41, 12, 54, 66, 22, 23, 19, 57, 18, 5, 34, 72, 8, 27, 28, 60, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 4, 61, 36, 13, 45, 73, 29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 65, 24, 40, 10, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [10, 40, 24, 65, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 73, 45, 13, 36, 61, 4, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 27, 8, 72, 34, 5, 18, 57, 19, 23, 22, 66, 54, 12, 41, 69, 47, 16, 68, 25, 64, 58, 26, 49, 70, 20, 3, 67, 59, 62, 2, 33, 63, 35, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [35, 63, 33, 2, 62, 59, 67, 3, 20, 70, 49, 26, 58, 64, 25, 68, 16, 47, 69, 41, 12, 54, 66, 22, 23, 19, 57, 18, 5, 34, 72, 8, 27, 28, 60, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 71, 44, 39, 11, 38, 53, 4, 61, 36, 13, 45, 10, 40, 24, 65, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 65, 24, 40, 10, 45, 13, 36, 61, 4, 53, 38, 11, 39, 44, 71, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 27, 8, 35, 63, 33, 2, 62, 59, 67, 3, 20, 70, 49, 26, 58, 64, 25, 68, 16, 47, 69, 41, 12, 54, 66, 22, 23, 19, 57, 18, 5, 34, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [34, 5, 18, 57, 19, 23, 22, 66, 54, 12, 41, 69, 47, 16, 68, 25, 64, 58, 26, 49, 70, 20, 3, 67, 59, 62, 2, 33, 63, 35, 8, 27, 28, 60, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 65, 24, 40, 10, 45, 13, 36, 61, 4, 53, 38, 11, 39, 44, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [44, 39, 11, 38, 53, 4, 61, 36, 13, 45, 10, 40, 24, 65, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 27, 8, 35, 63, 33, 2, 62, 59, 67, 3, 20, 34, 5, 18, 57, 19, 23, 22, 66, 54, 12, 41, 69, 47, 16, 68, 25, 64, 58, 26, 49, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [49, 26, 58, 64, 25, 68, 16, 47, 44, 39, 11, 38, 53, 4, 61, 36, 13, 45, 10, 40, 24, 65, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 27, 8, 35, 63, 33, 2, 62, 59, 67, 3, 20, 34, 5, 18, 57, 19, 23, 22, 66, 54, 12, 41, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [41, 12, 54, 66, 22, 23, 19, 57, 18, 5, 34, 20, 3, 67, 59, 62, 2, 33, 63, 35, 8, 27, 28, 60, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 65, 24, 40, 10, 45, 13, 36, 61, 4, 53, 38, 11, 39, 44, 47, 16, 49, 26, 58, 64, 25, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [25, 64, 58, 26, 49, 16, 47, 44, 39, 11, 38, 53, 4, 61, 36, 13, 45, 10, 40, 24, 65, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 27, 8, 35, 63, 33, 2, 62, 59, 41, 12, 54, 66, 22, 23, 19, 57, 18, 5, 34, 20, 3, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [3, 20, 34, 5, 18, 57, 19, 23, 22, 25, 64, 58, 26, 49, 16, 47, 44, 39, 11, 38, 53, 4, 61, 36, 13, 45, 10, 40, 24, 65, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 27, 8, 35, 63, 33, 2, 62, 59, 41, 12, 54, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [54, 12, 41, 59, 62, 2, 33, 63, 35, 8, 27, 28, 60, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 57, 19, 23, 22, 25, 64, 58, 26, 49, 16, 47, 44, 39, 11, 38, 53, 4, 61, 36, 13, 45, 10, 40, 24, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [24, 40, 10, 45, 13, 36, 61, 4, 53, 38, 11, 39, 44, 47, 16, 49, 26, 58, 54, 12, 41, 59, 62, 2, 33, 63, 35, 8, 27, 28, 60, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 57, 19, 23, 22, 25, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [25, 22, 23, 19, 57, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 61, 4, 53, 38, 11, 39, 44, 47, 16, 49, 26, 58, 54, 12, 41, 59, 62, 2, 33, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [33, 2, 25, 22, 23, 19, 57, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 61, 4, 53, 38, 11, 39, 44, 47, 16, 49, 26, 58, 54, 12, 41, 59, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [59, 41, 12, 54, 58, 26, 49, 16, 47, 44, 39, 11, 38, 53, 4, 33, 2, 25, 22, 23, 19, 57, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [36, 13, 45, 10, 40, 24, 35, 8, 27, 28, 59, 41, 12, 54, 58, 26, 49, 16, 47, 44, 39, 11, 38, 53, 4, 33, 2, 25, 22, 23, 19, 57, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 55, 6, 56, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 57, 19, 23, 22, 25, 2, 33, 4, 53, 38, 11, 39, 44, 47, 16, 49, 26, 58, 54, 12, 41, 36, 13, 45, 10, 40, 24, 35, 8, 27, 28, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 41, 12, 54, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 57, 19, 23, 22, 25, 2, 33, 4, 53, 38, 11, 39, 44, 47, 16, 49, 26, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [26, 49, 16, 47, 44, 39, 11, 38, 53, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 41, 12, 54, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 29, 37, 30, 7, 56, 6, 55, 42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 55, 6, 26, 49, 16, 47, 44, 39, 11, 38, 53, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 41, 12, 54, 46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 29, 37, 30, 7, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 54, 12, 41, 36, 13, 45, 10, 40, 24, 35, 8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 53, 38, 11, 39, 44, 47, 16, 49, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 6, 26, 49, 16, 47, 44, 39, 11, 38, 53, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 41, 12, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 52, 46, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [46, 52, 32, 51, 1, 21, 48, 31, 14, 50, 29, 37, 30, 7, 12, 41, 36, 13, 45, 10, 40, 24, 35, 8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 6, 26, 49, 16, 47, 44, 39, 11, 38, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [38, 11, 39, 44, 47, 16, 49, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 41, 12, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 32, 46, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [46, 32, 38, 11, 39, 44, 47, 16, 49, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 41, 12, 7, 30, 37, 29, 50, 14, 31, 48, 21, 1, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [1, 21, 48, 31, 14, 46, 32, 38, 11, 39, 44, 47, 16, 49, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 41, 12, 7, 30, 37, 29, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [29, 37, 30, 7, 12, 41, 36, 13, 45, 10, 40, 24, 35, 8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 6, 26, 1, 21, 48, 31, 14, 46, 32, 38, 11, 39, 44, 47, 16, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [16, 47, 44, 39, 11, 38, 32, 46, 14, 31, 29, 37, 30, 7, 12, 41, 36, 13, 45, 10, 40, 24, 35, 8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 6, 26, 1, 21, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [21, 1, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 41, 12, 7, 30, 37, 29, 31, 14, 46, 32, 38, 11, 39, 44, 16, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [16, 44, 39, 11, 38, 32, 21, 1, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 45, 13, 36, 41, 12, 7, 30, 37, 29, 31, 14, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [14, 31, 29, 37, 30, 7, 12, 41, 36, 13, 16, 44, 39, 11, 38, 32, 21, 1, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 43, 42, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [10, 40, 24, 35, 8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 42, 43, 9, 17, 15, 3, 20, 34, 5, 18, 6, 26, 1, 21, 32, 38, 11, 39, 14, 31, 29, 37, 30, 7, 12, 41, 36, 13, 16, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [16, 13, 36, 41, 12, 7, 30, 37, 29, 31, 14, 39, 11, 38, 32, 21, 1, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 10, 40, 24, 35, 8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [16, 13, 36, 41, 12, 7, 30, 37, 29, 31, 14, 39, 11, 38, 32, 21, 1, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 10, 40, 24, 35, 8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 10, 9, 17, 15, 3, 20, 34, 5, 18, 6, 26, 1, 21, 32, 38, 11, 39, 14, 31, 29, 37, 30, 7, 12, 16, 13, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [36, 13, 16, 12, 7, 30, 37, 29, 31, 14, 39, 11, 38, 32, 21, 1, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 10, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [24, 35, 8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 10, 9, 17, 15, 3, 20, 34, 5, 18, 6, 26, 1, 21, 32, 38, 11, 36, 13, 16, 12, 7, 30, 37, 29, 31, 14, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [14, 31, 29, 37, 30, 7, 12, 16, 13, 36, 11, 24, 35, 8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 10, 9, 17, 15, 3, 20, 34, 5, 18, 6, 26, 1, 21, 32, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [32, 21, 1, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 10, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 11, 36, 13, 16, 12, 7, 30, 14, 31, 29, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [29, 31, 14, 30, 7, 12, 16, 13, 32, 21, 1, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 10, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 24, 11, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [11, 24, 29, 31, 14, 30, 7, 12, 16, 13, 32, 21, 1, 26, 6, 18, 5, 34, 20, 3, 15, 17, 9, 10, 4, 33, 2, 25, 22, 23, 19, 28, 27, 8, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [8, 27, 28, 19, 23, 22, 25, 2, 33, 4, 10, 9, 17, 15, 3, 20, 11, 24, 29, 31, 14, 30, 7, 12, 16, 13, 32, 21, 1, 26, 6, 18, 5, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [5, 18, 6, 26, 1, 21, 32, 13, 16, 12, 7, 30, 14, 31, 29, 24, 11, 20, 3, 15, 17, 9, 10, 4, 8, 27, 28, 19, 23, 22, 25, 2, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [2, 25, 22, 23, 19, 28, 27, 8, 4, 10, 9, 17, 15, 3, 20, 11, 24, 29, 31, 14, 30, 7, 12, 16, 13, 5, 18, 6, 26, 1, 21, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [21, 1, 26, 6, 18, 5, 13, 16, 12, 7, 30, 14, 2, 25, 22, 23, 19, 28, 27, 8, 4, 10, 9, 17, 15, 3, 20, 11, 24, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [29, 24, 11, 20, 3, 15, 17, 9, 10, 4, 8, 27, 28, 19, 23, 22, 25, 2, 14, 21, 1, 26, 6, 18, 5, 13, 16, 12, 7, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [7, 12, 16, 13, 5, 18, 6, 26, 1, 21, 14, 2, 25, 22, 23, 19, 28, 27, 8, 4, 10, 9, 17, 15, 3, 20, 11, 24, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [24, 11, 20, 3, 15, 17, 9, 10, 4, 8, 27, 7, 12, 16, 13, 5, 18, 6, 26, 1, 21, 14, 2, 25, 22, 23, 19, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [19, 23, 22, 25, 2, 14, 21, 1, 26, 6, 18, 5, 13, 16, 12, 7, 24, 11, 20, 3, 15, 17, 9, 10, 4, 8, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [8, 4, 10, 9, 17, 15, 3, 20, 11, 24, 7, 12, 16, 13, 5, 18, 6, 19, 23, 22, 25, 2, 14, 21, 1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [1, 21, 14, 2, 8, 4, 10, 9, 17, 15, 3, 20, 11, 24, 7, 12, 16, 13, 5, 18, 6, 19, 23, 22, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [22, 23, 19, 6, 18, 5, 13, 16, 12, 7, 1, 21, 14, 2, 8, 4, 10, 9, 17, 15, 3, 20, 11, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [11, 20, 3, 15, 17, 9, 10, 4, 8, 2, 14, 21, 1, 7, 12, 16, 13, 5, 18, 6, 19, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [11, 20, 3, 15, 17, 9, 10, 4, 8, 2, 14, 21, 1, 7, 12, 16, 13, 5, 18, 6, 19, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [19, 6, 18, 5, 13, 16, 12, 7, 1, 11, 20, 3, 15, 17, 9, 10, 4, 8, 2, 14, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [14, 2, 8, 4, 10, 9, 17, 15, 3, 19, 6, 18, 5, 13, 16, 12, 7, 1, 11, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [11, 1, 7, 12, 16, 13, 5, 18, 6, 14, 2, 8, 4, 10, 9, 17, 15, 3, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [3, 15, 17, 9, 10, 4, 8, 2, 14, 6, 11, 1, 7, 12, 16, 13, 5, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [5, 13, 16, 12, 7, 1, 11, 6, 14, 2, 8, 4, 10, 9, 3, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [15, 3, 9, 10, 4, 8, 2, 14, 6, 11, 1, 7, 12, 5, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [13, 5, 12, 7, 1, 11, 6, 14, 2, 8, 4, 10, 9, 3, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [3, 9, 10, 4, 8, 2, 13, 5, 12, 7, 1, 11, 6, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [6, 11, 1, 7, 12, 5, 3, 9, 10, 4, 8, 2, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [2, 8, 4, 10, 9, 3, 5, 6, 11, 1, 7, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [7, 1, 2, 8, 4, 10, 9, 3, 5, 6, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [6, 5, 3, 9, 7, 1, 2, 8, 4, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [4, 8, 2, 1, 7, 6, 5, 3, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [3, 5, 6, 7, 1, 2, 4, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [4, 2, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [4, 2, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [4, 2, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [3, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000] 1998 6 1000 904 999 964 998 333 997 27 996 291 995 640 994 68 993 911 992 233 991 111 990 75 989 563 988 414 987 901 986 603 985 658 984 187 983 962 982 351 981 142 980 669 979 662 978 256 977 427 976 468 975 445 974 871 973 742 972 2 971 482 970 706 969 803 968 546 967 126 966 270 965 205 964 58 963 794 962 115 961 536 960 873 959 360 958 579 957 201 956 507 955 913 954 128 953 631 952 129 951 796 950 282 949 698 948 854 947 933 946 412 945 649 944 198 943 453 942 418 941 527 940 607 939 155 938 5 937 164 936 141 935 496 934 27 933 515 932 413 931 611 930 150 929 529 928 675 927 341 926 890 925 360 924 341 923 265 922 471 921 269 920 756 919 579 918 532 917 812 916 745 915 581 914 397 913 115 912 533 911 23 910 742 909 380 908 839 907 128 906 457 905 561 904 377 903 680 902 465 901 316 900 772 899 68 898 127 897 716 896 86 895 719 894 632 893 741 892 805 891 32 890 428 889 168 888 534 887 173 886 728 885 190 884 111 883 851 882 236 881 467 880 210 879 234 878 770 877 371 876 60 875 633 874 358 873 730 872 839 871 528 870 631 869 609 868 537 867 784 866 209 865 577 864 839 863 57 862 171 861 253 860 34 859 446 858 96 857 75 856 318 855 275 854 602 853 560 852 623 851 84 850 687 849 432 848 379 847 57 846 146 845 92 844 664 843 15 842 605 841 247 840 53 839 1 838 219 837 604 836 365 835 219 834 631 833 545 832 375 831 533 830 390 829 344 828 125 827 303 826 675 825 17 824 586 823 773 822 444 821 216 820 583 819 640 818 65 817 531 816 809 815 736 814 214 813 458 812 151 811 315 810 418 809 689 808 13 807 630 806 336 805 337 804 402 803 430 802 67 801 618 800 207 799 432 798 552 797 732 796 29 795 337 794 703 793 530 792 778 791 205 790 232 789 348 788 453 787 332 786 304 785 105 784 180 783 398 782 108 781 497 780 325 779 173 778 490 777 595 776 95 775 265 774 396 773 496 772 260 771 72 770 361 769 126 768 758 767 107 766 313 765 529 764 34 763 750 762 628 761 427 760 162 759 315 758 67 757 547 756 405 755 122 754 332 753 141 752 657 751 665 750 75 749 560 748 546 747 447 746 225 745 440 744 90 743 43 742 409 741 232 740 695 739 95 738 151 737 97 736 734 735 139 734 129 733 144 732 8 731 397 730 668 729 534 728 137 727 479 726 301 725 536 724 229 723 698 722 300 721 117 720 119 719 37 718 294 717 361 716 703 715 647 714 649 713 540 712 160 711 41 710 191 709 628 708 289 707 427 706 437 705 205 704 506 703 193 702 666 701 656 700 560 699 212 698 176 697 443 696 293 695 498 694 467 693 111 692 121 691 226 690 453 689 304 688 8 687 581 686 408 685 469 684 133 683 678 682 254 681 268 680 314 679 132 678 253 677 45 676 309 675 423 674 105 673 129 672 33 671 192 670 662 669 344 668 553 667 131 666 454 665 217 664 482 663 648 662 303 661 101 660 27 659 565 658 407 657 220 656 78 655 433 654 624 653 200 652 619 651 384 650 561 649 412 648 341 647 398 646 185 645 462 644 101 643 578 642 112 641 411 640 534 639 361 638 181 637 232 636 213 635 526 634 165 633 303 632 14 631 308 630 452 629 514 628 446 627 548 626 218 625 98 624 136 623 280 622 267 621 567 620 143 619 196 618 375 617 540 616 513 615 537 614 195 613 18 612 154 611 25 610 240 609 294 608 118 607 589 606 124 605 261 604 216 603 167 602 108 601 369 600 92 599 185 598 395 597 174 596 169 595 250 594 565 593 538 592 359 591 42 590 474 589 473 588 581 587 213 586 179 585 157 584 523 583 332 582 173 581 537 580 398 579 74 578 5 577 226 576 510 575 286 574 400 573 418 572 561 571 183 570 374 569 289 568 398 567 441 566 316 565 505 564 451 563 47 562 531 561 16 560 13 559 278 558 51 557 205 556 365 555 114 554 392 553 501 552 354 551 146 550 390 549 236 548 31 547 72 546 336 545 331 544 452 543 318 542 448 541 436 540 441 539 489 538 452 537 390 536 74 535 448 534 243 533 504 532 290 531 26 530 375 529 500 528 461 527 41 526 298 525 308 524 97 523 123 522 29 521 438 520 53 519 359 518 189 517 273 516 113 515 508 514 465 513 264 512 191 511 253 510 120 509 333 508 41 507 363 506 319 505 204 504 131 503 311 502 122 501 495 500 451 499 94 498 442 497 427 496 125 495 302 494 9 493 3 492 303 491 8 490 232 489 116 488 44 487 174 486 318 485 263 484 456 483 421 482 211 481 331 480 189 479 347 478 264 477 329 476 182 475 342 474 173 473 158 472 447 471 260 470 228 469 289 468 46 467 102 466 394 465 157 464 25 463 193 462 420 461 23 460 47 459 156 458 123 457 385 456 144 455 105 454 329 453 283 452 66 451 25 450 410 449 101 448 343 447 302 446 355 445 401 444 211 443 288 442 201 441 103 440 132 439 309 438 361 437 43 436 227 435 50 434 333 433 360 432 401 431 430 430 1 429 348 428 215 427 11 426 146 425 84 424 307 423 122 422 83 421 162 420 7 419 143 418 3 417 278 416 17 415 319 414 14 413 402 412 111 411 374 410 62 409 212 408 236 407 374 406 181 405 166 404 335 403 174 402 240 401 385 400 282 399 136 398 286 397 218 396 276 395 355 394 88 393 60 392 41 391 172 390 230 389 209 388 83 387 73 386 80 385 234 384 214 383 85 382 316 381 128 380 274 379 250 378 226 377 335 376 321 375 76 374 309 373 202 372 57 371 257 370 248 369 151 368 38 367 56 366 290 365 175 364 174 363 127 362 159 361 208 360 95 359 130 358 143 357 236 356 139 355 41 354 100 353 235 352 318 351 100 350 277 349 135 348 284 347 259 346 184 345 326 344 331 343 277 342 236 341 71 340 71 339 202 338 151 337 35 336 91 335 242 334 26 333 109 332 231 331 294 330 251 329 267 328 158 327 39 326 206 325 201 324 56 323 144 322 51 321 190 320 279 319 76 318 198 317 288 316 285 315 49 314 226 313 240 312 283 311 199 310 206 309 96 308 303 307 151 306 234 305 259 304 226 303 193 302 108 301 130 300 53 299 54 298 66 297 196 296 199 295 47 294 166 293 262 292 249 291 131 290 226 289 11 288 276 287 50 286 250 285 146 284 283 283 116 282 80 281 139 280 61 279 232 278 120 277 63 276 126 275 75 274 173 273 84 272 92 271 187 270 39 269 186 268 67 267 180 266 265 265 65 264 140 263 246 262 116 261 61 260 242 259 37 258 74 257 163 256 110 255 205 254 113 253 176 252 143 251 146 250 137 249 146 248 190 247 112 246 241 245 69 244 50 243 111 242 31 241 217 240 62 239 131 238 91 237 88 236 19 235 49 234 162 233 81 232 208 231 121 230 18 229 115 228 152 227 35 226 93 225 71 224 218 223 141 222 66 221 82 220 171 219 179 218 78 217 10 216 131 215 116 214 188 213 68 212 180 211 192 210 53 209 197 208 73 207 163 206 168 205 4 204 29 203 108 202 87 201 115 200 181 199 50 198 32 197 82 196 185 195 5 194 22 193 77 192 115 191 169 190 158 189 19 188 34 187 95 186 94 185 129 184 176 183 54 182 80 181 107 180 18 179 106 178 45 177 123 176 41 175 85 174 164 173 141 172 2 171 23 170 54 169 130 168 74 167 64 166 84 165 76 164 1 163 147 162 29 161 85 160 107 159 91 158 127 157 50 156 80 155 132 154 26 153 135 152 85 151 96 150 77 149 130 148 98 147 100 146 104 145 62 144 16 143 62 142 50 141 139 140 66 139 79 138 32 137 100 136 121 135 103 134 108 133 29 132 61 131 26 130 68 129 58 128 110 127 7 126 90 125 46 124 28 123 78 122 32 121 89 120 73 119 92 118 109 117 97 116 59 115 91 114 26 113 38 112 106 111 43 110 10 109 100 108 75 107 4 106 20 105 46 104 69 103 28 102 67 101 76 100 35 99 85 98 6 97 40 96 6 95 34 94 58 93 21 92 30 91 21 90 6 89 33 88 23 87 12 86 9 85 29 84 56 83 46 82 2 81 79 80 69 79 70 78 27 77 39 76 41 75 17 74 17 73 31 72 27 71 21 70 61 69 6 68 14 67 57 66 30 65 46 64 26 63 60 62 46 61 50 60 11 59 45 58 41 57 44 56 11 55 15 54 20 53 2 52 49 51 45 50 14 49 38 48 2 47 40 46 35 45 12 44 16 43 42 42 4 41 13 40 11 39 27 38 4 37 28 36 33 35 18 34 9 33 7 32 19 31 11 30 1 29 17 28 11 27 9 26 21 25 14 24 2 23 22 22 12 21 11 20 10 19 8 18 3 17 3 16 1 15 8 14 7 13 5 12 9 11 6 10 4 9 2 8 4 7 6 6 5 5 1 4 1 3 1 2