Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/python
# We send candy shipments in batches in 2 week intervals. Each list here shows which customers received
# each batch, starting from Nov 28th 2015. When a number goes missing, it means that the customer canceled
# their subscription. When a number appears, it means that a new customer joined.
shipping_lists = [
[1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 18, 19, 21, 22, 24, 26, 27, 30, 31, 33, 34, 36, 37, 40, 42, 45, 46, 49, 50, 51, 52, 56, 57, 58, 59, 61, 64, 66, 67, 68, 70, 71, 72, 73, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 88, 89, 93, 94, 95, 96, 98, 99, 101, 103, 104, 105, 106, 109, 110, 111, 112, 118, 122, 124, 125, 127, 129, 130, 131, 132, 134, 135, 137, 140, 141, 142, 143, 145, 146, 149, 150, 152, 153, 154, 156, 158, 160, 163, 164, 166, 167, 168, 169, 170, 171, 173, 175, 177, 179, 180, 182, 184, 187, 188, 189, 190, 191, 192, 193, 196, 197, 198, 200, 201, 203, 205, 206, 207, 208, 209, 210, 211, 213, 215, 216, 218, 219, 220, 223, 224, 225, 226, 227, 228, 229, 230, 232, 236, 237, 238, 240, 246, 247, 249, 253, 255, 256, 257, 258, 259, 260, 261, 263, 266, 267, 269, 270, 273, 274, 277, 278, 279, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 297, 298, 300, 302, 303, 304, 305, 308, 312, 313, 316, 318, 324, 328, 330, 333, 334, 335, 336, 337, 339, 342, 343, 344, 345, 346, 349, 351, 353, 354, 355, 356, 358, 361, 362, 364, 366, 368, 370, 371, 372, 373, 375, 376, 378, 379, 380, 383, 384, 387, 389, 390, 392, 393, 394, 395, 397, 398, 399, 403, 404, 405, 408, 409, 410, 411, 412, 414, 416, 417, 418, 419, 421, 425, 426, 427, 428, 431, 432, 433, 434, 436, 441, 442, 443, 444, 445, 447, 454, 455, 456, 457, 459, 460, 462, 464, 465, 466, 467, 469, 470, 471, 473, 474, 475, 476, 477, 478, 479, 480, 482, 484, 486, 487, 488, 489, 490, 491, 493, 495, 496, 499, 504, 505, 506, 508, 510, 512, 514, 515, 516, 517, 518, 519, 520, 521, 522, 524, 525, 526, 528, 529, 530, 531, 532, 534, 535, 536, 537, 538, 540, 541, 542, 548, 549, 550, 551, 552, 555, 556, 557, 560, 563, 565, 566, 567, 569, 572, 573, 574, 575, 577, 578, 580, 581, 583, 586, 587, 588, 597, 599, 600, 601, 602, 603, 604, 605, 608, 611, 612, 613, 614, 615, 616, 618, 619, 621, 623, 624, 626, 627, 629, 633, 635, 636, 639, 641, 643, 644, 645, 646, 647, 648, 649, 650, 652, 653, 658, 663, 664, 666, 667, 668, 671, 673, 679, 681, 683, 687, 688, 689, 690, 691, 693, 695, 696, 699, 700, 701, 703, 704, 706, 708, 709, 712, 715, 716, 718, 719, 721, 722, 724, 728, 731, 732, 733, 734, 735, 736, 738, 739, 743, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 757, 760, 761, 766, 767, 768, 776, 777, 778, 779, 780, 784, 785, 786, 787, 788, 791, 794, 795, 798, 800, 802, 803, 804, 805, 806, 808, 809, 810, 811, 812, 813, 814, 815, 816, 820, 821, 822, 826, 831, 832, 833, 834, 835, 836, 837, 839, 843, 845, 846, 848, 849, 850, 853, 855, 856, 857, 858, 859, 862, 864, 865, 866, 867, 868, 870, 872, 878, 879, 880, 882, 883, 886, 887, 890, 891, 892, 893, 894, 899, 900, 901, 903, 906, 908, 909, 910, 912, 913, 914, 915, 920, 921, 923, 924, 925, 926, 928, 930, 932, 934, 935, 936, 937, 944, 945, 949, 950, 955, 959, 960, 963, 967, 968, 970, 971, 976, 977, 978, 981, 982, 983, 984, 986, 988, 989, 990, 991, 992, 994, 996, 998, 999, 1000, 1001, 1003, 1004, 1006, 1008, 1009, 1010, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1021, 1022, 1023, 1025, 1026, 1032, 1033, 1034, 1036, 1038, 1045, 1046, 1048, 1049, 1051, 1054, 1055, 1056, 1059, 1060, 1062, 1063, 1064, 1065, 1066, 1067, 1069, 1070, 1072, 1074, 1076, 1078, 1079, 1080, 1082, 1083, 1084, 1085, 1088, 1090, 1091, 1092, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1103, 1104, 1105, 1106, 1108, 1112, 1113, 1115, 1116, 1120, 1122, 1123, 1124, 1127, 1128, 1130, 1131, 1133, 1135, 1139, 1141, 1142, 1146, 1147, 1149, 1150, 1152, 1153, 1154, 1155, 1157, 1159, 1160, 1161, 1162, 1163, 1164, 1166, 1168, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1181, 1182, 1183, 1185, 1186, 1187, 1188, 1190, 1191, 1192, 1194, 1196, 1200],
[1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 18, 19, 21, 22, 24, 25, 26, 27, 30, 31, 33, 34, 36, 37, 40, 42, 44, 45, 46, 50, 51, 52, 54, 56, 57, 58, 59, 61, 66, 67, 68, 70, 71, 72, 73, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 88, 89, 94, 95, 96, 98, 99, 100, 101, 103, 105, 106, 110, 111, 112, 120, 122, 124, 125, 129, 130, 132, 133, 134, 135, 136, 137, 140, 141, 143, 145, 149, 150, 152, 153, 154, 156, 158, 163, 164, 166, 167, 168, 169, 170, 171, 172, 173, 177, 179, 180, 184, 187, 188, 189, 190, 191, 192, 193, 197, 198, 200, 201, 203, 205, 206, 207, 208, 209, 210, 211, 213, 214, 215, 216, 218, 219, 220, 223, 224, 226, 227, 228, 229, 230, 232, 236, 237, 238, 240, 246, 247, 249, 252, 253, 255, 256, 257, 258, 259, 260, 261, 263, 266, 267, 268, 269, 270, 273, 277, 278, 279, 282, 283, 284, 285, 286, 287, 288, 289, 290, 292, 294, 297, 298, 299, 300, 304, 305, 308, 310, 312, 313, 316, 318, 321, 324, 328, 330, 333, 336, 337, 339, 340, 342, 343, 345, 348, 349, 351, 353, 354, 356, 358, 361, 362, 364, 366, 368, 371, 372, 373, 375, 376, 378, 379, 380, 383, 387, 389, 390, 392, 393, 394, 395, 397, 398, 399, 400, 403, 404, 405, 410, 411, 412, 414, 416, 417, 418, 419, 425, 426, 427, 428, 431, 432, 433, 436, 439, 441, 442, 443, 444, 445, 447, 449, 453, 454, 455, 456, 459, 460, 462, 464, 465, 466, 467, 468, 470, 471, 473, 474, 475, 476, 477, 480, 482, 484, 485, 486, 487, 488, 489, 490, 491, 493, 494, 495, 499, 502, 505, 506, 508, 510, 512, 514, 515, 516, 517, 518, 519, 520, 521, 522, 524, 525, 526, 528, 530, 531, 532, 534, 535, 536, 537, 538, 540, 541, 542, 549, 550, 551, 552, 555, 556, 557, 560, 563, 565, 566, 567, 569, 571, 572, 574, 575, 577, 578, 580, 581, 583, 585, 586, 587, 588, 589, 594, 597, 598, 599, 600, 601, 602, 604, 605, 610, 611, 612, 613, 614, 615, 616, 618, 619, 621, 623, 624, 626, 629, 631, 632, 633, 635, 636, 639, 643, 644, 645, 646, 647, 648, 649, 650, 652, 653, 654, 658, 660, 664, 667, 668, 670, 671, 673, 679, 683, 687, 688, 689, 690, 691, 693, 695, 696, 698, 699, 700, 701, 703, 704, 706, 707, 708, 709, 710, 712, 715, 718, 719, 720, 721, 722, 724, 728, 731, 732, 734, 735, 736, 737, 738, 739, 740, 743, 745, 746, 747, 748, 749, 750, 751, 752, 753, 755, 757, 760, 761, 766, 767, 768, 776, 779, 783, 784, 785, 786, 787, 788, 789, 791, 794, 795, 796, 798, 800, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 820, 821, 822, 826, 829, 831, 832, 833, 834, 835, 836, 837, 839, 843, 845, 846, 848, 849, 850, 851, 853, 856, 857, 858, 859, 862, 864, 865, 866, 867, 868, 870, 871, 872, 878, 879, 880, 882, 883, 885, 886, 887, 890, 891, 892, 893, 894, 899, 900, 901, 903, 906, 908, 909, 910, 911, 912, 913, 914, 915, 920, 921, 923, 924, 926, 928, 932, 934, 935, 936, 937, 944, 945, 950, 952, 960, 961, 963, 967, 968, 970, 971, 973, 976, 977, 978, 981, 982, 983, 984, 986, 988, 989, 990, 991, 992, 994, 996, 998, 999, 1000, 1001, 1003, 1004, 1006, 1008, 1009, 1010, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1021, 1022, 1023, 1025, 1026, 1028, 1030, 1032, 1033, 1034, 1036, 1038, 1039, 1045, 1046, 1048, 1049, 1051, 1054, 1055, 1056, 1059, 1060, 1063, 1064, 1065, 1066, 1067, 1069, 1070, 1074, 1078, 1079, 1083, 1084, 1085, 1088, 1090, 1091, 1092, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1102, 1103, 1104, 1105, 1106, 1108, 1112, 1113, 1115, 1116, 1120, 1122, 1123, 1124, 1127, 1131, 1133, 1135, 1139, 1142, 1146, 1147, 1149, 1150, 1152, 1153, 1154, 1155, 1157, 1159, 1160, 1161, 1162, 1164, 1166, 1168, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1182, 1183, 1185, 1186, 1187, 1188, 1190, 1191, 1192, 1193, 1194, 1196, 1200],
[1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 18, 19, 21, 22, 23, 25, 26, 27, 28, 30, 31, 33, 34, 36, 37, 40, 41, 43, 44, 45, 46, 50, 51, 52, 54, 56, 57, 58, 59, 60, 61, 63, 66, 67, 68, 69, 71, 72, 73, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 88, 89, 92, 94, 95, 96, 97, 98, 99, 100, 101, 103, 105, 106, 110, 111, 112, 113, 117, 120, 122, 123, 124, 125, 128, 129, 130, 132, 133, 134, 135, 136, 137, 140, 141, 143, 145, 150, 151, 152, 153, 154, 156, 158, 163, 164, 166, 167, 168, 169, 170, 171, 172, 173, 177, 178, 179, 180, 184, 188, 189, 190, 191, 192, 193, 197, 198, 200, 201, 202, 203, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 218, 219, 220, 221, 223, 224, 226, 227, 228, 229, 230, 232, 236, 237, 238, 240, 241, 243, 245, 247, 249, 251, 252, 253, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 266, 267, 268, 269, 270, 273, 277, 279, 282, 283, 284, 285, 286, 287, 288, 289, 292, 294, 295, 297, 298, 299, 300, 301, 304, 305, 306, 308, 309, 310, 312, 313, 316, 318, 321, 323, 324, 325, 328, 330, 333, 336, 337, 339, 340, 342, 343, 345, 348, 349, 351, 353, 356, 358, 362, 364, 366, 368, 369, 371, 372, 373, 375, 376, 377, 378, 379, 380, 383, 387, 388, 389, 390, 392, 393, 394, 395, 397, 398, 399, 400, 402, 403, 404, 405, 410, 411, 412, 417, 418, 419, 423, 425, 426, 427, 428, 431, 432, 433, 436, 439, 440, 441, 442, 443, 444, 445, 447, 449, 453, 454, 455, 456, 458, 459, 460, 461, 462, 464, 466, 467, 468, 470, 471, 472, 473, 474, 475, 476, 477, 480, 482, 484, 485, 486, 487, 488, 489, 490, 491, 493, 494, 499, 502, 505, 506, 507, 508, 510, 512, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 528, 530, 531, 532, 533, 534, 535, 536, 537, 538, 540, 541, 542, 545, 547, 549, 550, 551, 554, 555, 556, 560, 561, 563, 565, 566, 567, 569, 571, 572, 574, 575, 576, 577, 578, 580, 581, 583, 585, 586, 587, 588, 589, 590, 591, 594, 598, 599, 600, 601, 602, 604, 605, 610, 611, 612, 614, 615, 616, 618, 619, 620, 621, 623, 624, 629, 631, 632, 633, 635, 636, 639, 643, 644, 646, 647, 648, 649, 650, 652, 653, 654, 658, 660, 664, 667, 668, 669, 670, 671, 672, 673, 679, 683, 687, 690, 691, 693, 695, 696, 698, 699, 700, 701, 703, 704, 705, 706, 707, 708, 709, 710, 712, 714, 715, 718, 719, 720, 721, 722, 724, 728, 730, 731, 732, 734, 735, 736, 737, 738, 739, 740, 743, 745, 746, 747, 748, 749, 750, 751, 752, 753, 755, 756, 757, 760, 761, 763, 766, 767, 768, 769, 772, 776, 779, 783, 784, 785, 786, 787, 788, 789, 791, 794, 795, 796, 797, 798, 800, 802, 803, 804, 806, 807, 808, 809, 811, 812, 813, 814, 815, 816, 817, 818, 820, 821, 822, 824, 826, 828, 829, 831, 832, 833, 834, 835, 836, 837, 839, 843, 845, 846, 848, 849, 850, 851, 853, 856, 857, 858, 859, 862, 863, 864, 865, 866, 867, 868, 870, 871, 872, 874, 878, 879, 880, 882, 883, 885, 886, 887, 889, 890, 892, 893, 894, 896, 899, 900, 901, 903, 906, 907, 908, 909, 910, 911, 912, 913, 914, 920, 923, 924, 926, 932, 934, 935, 936, 937, 942, 943, 944, 945, 946, 950, 952, 956, 960, 961, 963, 967, 968, 969, 970, 971, 973, 974, 975, 976, 978, 981, 983, 984, 985, 986, 988, 989, 990, 991, 994, 996, 998, 999, 1001, 1006, 1008, 1009, 1010, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1021, 1022, 1023, 1025, 1026, 1027, 1028, 1030, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1042, 1045, 1046, 1048, 1049, 1051, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1063, 1064, 1065, 1066, 1067, 1069, 1070, 1071, 1074, 1075, 1077, 1078, 1079, 1083, 1084, 1085, 1088, 1090, 1091, 1092, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1112, 1113, 1115, 1116, 1120, 1122, 1123, 1124, 1127, 1131, 1133, 1135, 1139, 1140, 1142, 1144, 1146, 1147, 1149, 1150, 1152, 1153, 1154, 1155, 1157, 1159, 1160, 1161, 1162, 1164, 1166, 1168, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1180, 1182, 1183, 1185, 1186, 1190, 1191, 1192, 1193, 1194, 1196, 1200],
[1, 4, 5, 6, 7, 9, 10, 11, 12, 14, 15, 16, 19, 21, 22, 23, 25, 26, 27, 28, 30, 31, 32, 33, 34, 36, 37, 40, 41, 43, 46, 50, 51, 52, 54, 57, 58, 59, 60, 61, 63, 66, 67, 68, 69, 71, 73, 75, 76, 77, 79, 80, 81, 82, 83, 84, 85, 88, 89, 90, 92, 94, 95, 96, 97, 98, 99, 100, 101, 103, 105, 106, 110, 111, 112, 113, 117, 120, 122, 123, 124, 125, 126, 128, 129, 132, 133, 134, 135, 136, 137, 140, 141, 143, 145, 150, 151, 152, 154, 155, 156, 158, 162, 163, 164, 166, 167, 169, 170, 171, 172, 173, 177, 178, 179, 180, 184, 185, 188, 189, 190, 191, 192, 193, 194, 197, 198, 199, 200, 201, 202, 203, 205, 206, 207, 208, 209, 210, 211, 212, 215, 216, 218, 219, 220, 221, 223, 224, 226, 227, 228, 229, 230, 232, 236, 237, 238, 240, 241, 243, 245, 247, 249, 251, 253, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 268, 269, 270, 273, 275, 277, 279, 282, 283, 284, 285, 286, 287, 288, 289, 290, 292, 294, 295, 297, 298, 299, 300, 301, 304, 305, 306, 308, 309, 310, 312, 313, 314, 316, 318, 321, 323, 324, 325, 326, 328, 330, 333, 336, 337, 339, 340, 342, 343, 345, 348, 349, 351, 353, 358, 362, 364, 366, 368, 369, 371, 373, 374, 375, 376, 377, 378, 379, 382, 383, 385, 387, 388, 389, 390, 392, 393, 394, 395, 396, 397, 398, 399, 400, 402, 403, 404, 405, 407, 410, 411, 418, 419, 423, 425, 426, 427, 431, 432, 433, 436, 439, 440, 441, 442, 443, 445, 447, 448, 449, 453, 454, 456, 458, 459, 460, 461, 462, 463, 464, 466, 467, 468, 470, 472, 473, 474, 475, 476, 477, 480, 482, 484, 485, 486, 487, 488, 489, 490, 491, 493, 494, 497, 499, 500, 502, 503, 505, 506, 507, 508, 510, 512, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 528, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 542, 545, 547, 549, 550, 551, 554, 555, 556, 560, 561, 563, 565, 566, 567, 569, 574, 575, 576, 578, 580, 581, 583, 584, 585, 586, 587, 589, 590, 591, 592, 594, 595, 599, 600, 601, 602, 604, 605, 606, 610, 611, 612, 614, 615, 616, 618, 619, 620, 621, 623, 624, 629, 631, 632, 633, 635, 636, 639, 640, 643, 644, 646, 647, 648, 649, 652, 653, 654, 657, 658, 660, 664, 667, 668, 669, 671, 672, 673, 674, 679, 680, 683, 687, 689, 690, 691, 693, 694, 695, 696, 699, 700, 701, 703, 704, 705, 706, 708, 709, 710, 712, 714, 715, 718, 719, 720, 721, 722, 724, 728, 730, 731, 732, 734, 735, 736, 737, 738, 739, 740, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 755, 756, 757, 758, 759, 760, 761, 763, 766, 767, 768, 769, 770, 772, 775, 776, 779, 781, 783, 784, 785, 786, 787, 788, 789, 790, 791, 794, 795, 796, 797, 798, 800, 802, 803, 804, 806, 807, 808, 809, 811, 812, 813, 814, 815, 816, 817, 818, 820, 821, 822, 824, 826, 828, 829, 831, 832, 833, 834, 835, 836, 837, 839, 840, 843, 845, 848, 849, 850, 851, 853, 857, 858, 859, 861, 862, 863, 864, 865, 866, 868, 870, 871, 872, 874, 878, 879, 880, 882, 883, 885, 886, 887, 889, 890, 892, 893, 894, 896, 899, 900, 901, 903, 906, 907, 908, 909, 910, 911, 912, 913, 916, 920, 922, 923, 924, 926, 927, 929, 932, 933, 934, 935, 936, 937, 942, 943, 944, 945, 946, 950, 951, 952, 956, 960, 963, 964, 967, 968, 969, 970, 971, 973, 974, 975, 976, 978, 981, 983, 985, 986, 988, 989, 990, 991, 994, 996, 998, 999, 1001, 1006, 1008, 1009, 1010, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1021, 1022, 1023, 1025, 1026, 1027, 1028, 1030, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1040, 1042, 1045, 1046, 1048, 1049, 1051, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1063, 1064, 1065, 1066, 1067, 1069, 1070, 1071, 1074, 1075, 1077, 1078, 1079, 1084, 1085, 1088, 1091, 1092, 1094, 1095, 1096, 1097, 1098, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1111, 1112, 1113, 1115, 1116, 1120, 1122, 1123, 1124, 1127, 1131, 1132, 1133, 1135, 1136, 1139, 1140, 1142, 1144, 1146, 1147, 1149, 1150, 1152, 1153, 1154, 1155, 1157, 1158, 1159, 1160, 1161, 1162, 1164, 1166, 1168, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1180, 1182, 1183, 1185, 1186, 1190, 1192, 1193, 1194, 1196, 1198, 1200],
[1, 4, 5, 6, 7, 9, 10, 11, 12, 14, 15, 16, 19, 21, 22, 23, 25, 26, 27, 29, 31, 32, 34, 36, 37, 40, 41, 43, 46, 50, 52, 54, 57, 58, 59, 60, 63, 66, 67, 68, 69, 71, 73, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 88, 89, 90, 91, 94, 95, 96, 97, 98, 99, 100, 101, 103, 105, 106, 110, 111, 112, 113, 117, 122, 124, 125, 128, 129, 132, 133, 134, 135, 136, 137, 141, 143, 145, 150, 151, 152, 154, 155, 156, 162, 163, 164, 166, 167, 169, 170, 171, 172, 173, 177, 178, 179, 180, 184, 185, 189, 190, 191, 192, 193, 194, 197, 198, 199, 200, 201, 202, 203, 205, 206, 207, 208, 209, 210, 214, 215, 216, 218, 219, 220, 221, 223, 224, 226, 227, 228, 230, 232, 236, 237, 238, 240, 241, 243, 245, 247, 249, 251, 253, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 268, 269, 270, 273, 275, 277, 279, 282, 283, 284, 285, 286, 287, 288, 289, 290, 292, 294, 295, 297, 298, 299, 300, 301, 304, 305, 306, 308, 309, 310, 312, 313, 314, 316, 318, 321, 323, 324, 325, 326, 328, 330, 333, 336, 337, 339, 340, 342, 343, 345, 348, 349, 351, 353, 358, 362, 364, 366, 368, 369, 371, 372, 373, 374, 375, 376, 377, 378, 379, 382, 383, 387, 388, 389, 390, 392, 393, 394, 395, 396, 397, 398, 399, 400, 402, 403, 404, 405, 407, 410, 411, 418, 419, 423, 425, 426, 427, 431, 432, 433, 436, 439, 440, 441, 442, 443, 445, 447, 448, 449, 453, 454, 456, 458, 459, 460, 461, 462, 463, 464, 466, 467, 468, 470, 472, 473, 474, 475, 476, 477, 480, 482, 484, 485, 486, 487, 488, 489, 490, 491, 494, 497, 498, 499, 500, 502, 503, 505, 506, 508, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 526, 528, 530, 531, 532, 534, 535, 536, 537, 538, 539, 545, 547, 549, 550, 551, 553, 554, 555, 556, 560, 561, 563, 565, 566, 567, 569, 574, 575, 576, 578, 580, 581, 583, 584, 585, 586, 587, 589, 590, 591, 592, 594, 595, 599, 600, 601, 602, 604, 605, 606, 610, 612, 614, 615, 616, 618, 619, 620, 621, 623, 624, 629, 631, 632, 633, 635, 636, 639, 640, 643, 644, 646, 647, 648, 649, 652, 654, 657, 658, 660, 664, 667, 668, 669, 671, 672, 673, 674, 679, 680, 683, 687, 689, 690, 691, 693, 695, 696, 699, 700, 701, 703, 704, 705, 706, 708, 709, 710, 712, 714, 715, 718, 719, 720, 721, 722, 724, 728, 730, 732, 734, 735, 736, 737, 738, 739, 740, 744, 745, 746, 747, 748, 749, 750, 751, 753, 755, 756, 757, 758, 759, 760, 761, 763, 766, 767, 768, 769, 770, 771, 772, 776, 781, 783, 784, 785, 786, 787, 788, 789, 790, 791, 794, 795, 796, 797, 798, 800, 802, 804, 806, 807, 808, 809, 811, 812, 813, 814, 815, 816, 817, 818, 820, 821, 822, 824, 826, 828, 829, 831, 832, 833, 834, 835, 836, 837, 839, 840, 843, 844, 848, 849, 850, 851, 853, 857, 858, 859, 861, 862, 863, 865, 866, 868, 870, 871, 872, 874, 878, 879, 880, 882, 883, 885, 886, 887, 889, 890, 892, 893, 894, 896, 899, 900, 901, 903, 906, 907, 908, 909, 910, 911, 912, 913, 916, 920, 922, 923, 924, 926, 927, 929, 932, 933, 934, 935, 936, 937, 942, 944, 945, 946, 950, 951, 952, 956, 960, 964, 966, 967, 968, 969, 970, 971, 973, 974, 976, 978, 981, 983, 985, 986, 989, 990, 991, 994, 996, 998, 999, 1001, 1006, 1008, 1009, 1010, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1021, 1022, 1025, 1026, 1027, 1028, 1029, 1030, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1040, 1042, 1045, 1046, 1048, 1049, 1051, 1054, 1056, 1057, 1058, 1059, 1060, 1063, 1064, 1066, 1067, 1069, 1070, 1071, 1074, 1075, 1077, 1078, 1079, 1084, 1085, 1088, 1091, 1092, 1094, 1095, 1096, 1097, 1098, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1111, 1112, 1113, 1115, 1116, 1120, 1122, 1123, 1124, 1127, 1131, 1132, 1133, 1135, 1136, 1139, 1140, 1142, 1144, 1146, 1147, 1149, 1150, 1152, 1154, 1157, 1159, 1160, 1161, 1162, 1164, 1166, 1168, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1180, 1182, 1185, 1186, 1190, 1192, 1193, 1194, 1196, 1200],
[1, 4, 5, 6, 7, 10, 11, 12, 14, 15, 16, 19, 21, 22, 23, 25, 26, 27, 29, 31, 32, 34, 36, 37, 40, 41, 43, 46, 50, 52, 54, 57, 58, 59, 60, 63, 66, 67, 68, 69, 71, 73, 75, 76, 77, 78, 80, 81, 82, 83, 84, 85, 88, 89, 91, 94, 95, 96, 97, 98, 99, 100, 102, 103, 105, 106, 110, 111, 112, 113, 117, 122, 124, 125, 128, 129, 132, 133, 134, 135, 136, 137, 139, 141, 143, 145, 150, 151, 152, 154, 156, 161, 163, 164, 166, 167, 169, 170, 171, 172, 173, 178, 179, 180, 184, 185, 189, 190, 191, 192, 193, 194, 197, 198, 200, 201, 202, 203, 205, 206, 207, 208, 209, 210, 214, 215, 216, 217, 218, 219, 221, 223, 224, 226, 227, 228, 230, 232, 234, 236, 240, 241, 243, 244, 245, 247, 249, 251, 253, 255, 256, 257, 258, 259, 260, 261, 262, 264, 268, 269, 270, 271, 273, 275, 277, 279, 280, 282, 283, 284, 285, 286, 287, 288, 289, 290, 292, 294, 295, 296, 297, 298, 299, 300, 301, 304, 305, 306, 308, 309, 310, 311, 312, 313, 315, 316, 318, 321, 323, 324, 325, 326, 327, 328, 330, 333, 336, 337, 339, 340, 341, 342, 343, 345, 348, 349, 351, 353, 358, 359, 362, 366, 367, 368, 369, 371, 372, 373, 374, 376, 377, 378, 379, 383, 388, 389, 390, 392, 393, 394, 395, 398, 399, 400, 401, 402, 403, 405, 406, 410, 418, 419, 423, 425, 426, 427, 431, 432, 433, 436, 438, 439, 440, 441, 442, 443, 445, 447, 449, 453, 454, 456, 458, 459, 460, 461, 462, 464, 466, 467, 468, 470, 472, 473, 474, 475, 476, 477, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 498, 505, 506, 508, 512, 513, 515, 516, 517, 518, 519, 520, 521, 523, 524, 526, 528, 530, 531, 532, 534, 535, 536, 537, 538, 545, 547, 549, 550, 551, 553, 554, 555, 556, 559, 560, 561, 564, 565, 566, 569, 574, 575, 576, 578, 580, 581, 583, 584, 585, 586, 587, 589, 590, 591, 592, 594, 599, 600, 601, 602, 604, 605, 606, 610, 612, 614, 615, 616, 618, 619, 620, 621, 623, 624, 629, 631, 632, 633, 635, 636, 639, 643, 644, 646, 647, 648, 649, 652, 654, 655, 658, 660, 664, 667, 668, 669, 671, 672, 673, 674, 676, 680, 682, 683, 687, 689, 690, 691, 693, 695, 696, 699, 700, 701, 703, 704, 705, 706, 708, 710, 712, 714, 718, 719, 720, 721, 724, 728, 730, 732, 734, 735, 736, 738, 739, 740, 745, 746, 747, 748, 750, 751, 753, 755, 756, 757, 759, 760, 761, 763, 766, 767, 769, 771, 772, 776, 783, 784, 785, 786, 787, 788, 791, 792, 794, 796, 797, 798, 800, 801, 802, 804, 806, 808, 809, 811, 812, 813, 814, 815, 816, 817, 818, 820, 822, 824, 826, 828, 829, 831, 832, 833, 834, 835, 836, 837, 839, 840, 841, 843, 844, 848, 850, 851, 853, 858, 859, 860, 862, 863, 865, 866, 868, 870, 874, 875, 876, 878, 879, 880, 883, 885, 886, 887, 889, 890, 892, 893, 894, 896, 899, 900, 901, 903, 906, 907, 908, 909, 910, 912, 913, 917, 923, 924, 926, 927, 932, 934, 935, 936, 937, 942, 944, 945, 946, 947, 948, 950, 954, 956, 960, 964, 966, 967, 968, 969, 970, 971, 973, 974, 976, 978, 981, 983, 985, 986, 989, 990, 991, 994, 996, 998, 999, 1001, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1021, 1022, 1025, 1026, 1027, 1028, 1029, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1042, 1045, 1046, 1049, 1051, 1053, 1054, 1056, 1057, 1058, 1059, 1060, 1063, 1064, 1067, 1069, 1070, 1071, 1074, 1075, 1077, 1078, 1079, 1081, 1084, 1085, 1088, 1091, 1092, 1094, 1096, 1097, 1098, 1100, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1111, 1112, 1113, 1115, 1116, 1120, 1122, 1123, 1127, 1131, 1132, 1133, 1135, 1139, 1140, 1142, 1143, 1144, 1146, 1147, 1149, 1150, 1152, 1157, 1159, 1160, 1161, 1162, 1164, 1166, 1168, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1180, 1182, 1185, 1186, 1190, 1192, 1193, 1194, 1196, 1200],
[4, 5, 6, 7, 10, 11, 12, 14, 15, 16, 17, 19, 21, 22, 25, 26, 27, 29, 32, 34, 36, 37, 40, 41, 46, 48, 50, 54, 57, 59, 60, 63, 66, 67, 69, 71, 75, 76, 77, 78, 80, 81, 82, 83, 84, 85, 88, 89, 91, 94, 95, 97, 98, 99, 100, 102, 103, 105, 106, 110, 111, 112, 113, 114, 122, 124, 125, 128, 129, 132, 133, 134, 135, 136, 137, 139, 141, 143, 145, 147, 150, 151, 152, 154, 156, 161, 163, 164, 166, 167, 169, 170, 171, 172, 173, 178, 179, 180, 184, 185, 189, 190, 191, 192, 193, 194, 197, 198, 200, 202, 203, 204, 205, 206, 207, 208, 209, 210, 214, 215, 216, 217, 218, 219, 221, 223, 224, 226, 227, 228, 230, 232, 234, 236, 240, 241, 244, 245, 247, 248, 251, 253, 256, 257, 258, 260, 261, 262, 264, 265, 268, 269, 271, 273, 275, 277, 279, 280, 282, 283, 284, 285, 286, 287, 288, 289, 290, 292, 294, 295, 296, 297, 298, 299, 300, 301, 304, 305, 306, 309, 310, 311, 312, 313, 315, 318, 319, 321, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 336, 339, 340, 341, 342, 343, 345, 348, 349, 351, 353, 358, 359, 360, 362, 363, 366, 367, 368, 369, 371, 372, 373, 374, 376, 377, 378, 379, 383, 388, 389, 390, 392, 393, 394, 395, 398, 399, 400, 401, 402, 403, 405, 406, 410, 418, 419, 420, 425, 426, 427, 431, 432, 433, 436, 437, 438, 439, 440, 441, 442, 443, 445, 447, 449, 453, 454, 456, 459, 460, 462, 464, 466, 467, 468, 470, 472, 473, 474, 475, 476, 477, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 498, 505, 506, 508, 512, 515, 516, 517, 518, 519, 520, 521, 523, 524, 526, 527, 528, 530, 531, 532, 534, 535, 536, 537, 538, 544, 545, 549, 550, 551, 553, 554, 555, 556, 559, 560, 561, 564, 565, 566, 569, 574, 575, 578, 580, 581, 582, 583, 584, 585, 586, 589, 590, 591, 592, 594, 599, 601, 602, 604, 605, 606, 610, 612, 614, 615, 616, 618, 620, 621, 623, 624, 629, 630, 631, 632, 633, 639, 643, 644, 646, 647, 648, 649, 652, 654, 655, 658, 660, 664, 667, 668, 669, 671, 673, 674, 676, 680, 682, 683, 685, 687, 689, 691, 693, 695, 696, 697, 699, 700, 701, 703, 704, 705, 706, 708, 710, 712, 714, 718, 719, 720, 721, 724, 726, 728, 730, 732, 734, 735, 736, 738, 739, 740, 745, 746, 747, 748, 750, 751, 753, 755, 756, 757, 759, 760, 761, 763, 766, 767, 769, 771, 772, 776, 783, 784, 785, 786, 787, 788, 791, 792, 794, 796, 798, 800, 801, 802, 804, 806, 808, 809, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 822, 824, 826, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 839, 840, 841, 843, 844, 847, 848, 850, 851, 853, 858, 859, 860, 862, 863, 866, 868, 869, 870, 875, 876, 878, 879, 880, 881, 883, 885, 886, 887, 888, 889, 890, 892, 893, 894, 896, 897, 899, 900, 901, 903, 904, 906, 907, 910, 912, 913, 917, 924, 926, 927, 931, 932, 934, 935, 936, 937, 939, 940, 942, 944, 945, 946, 947, 948, 950, 954, 956, 960, 964, 965, 966, 970, 971, 973, 974, 976, 978, 981, 983, 985, 986, 987, 989, 990, 991, 994, 996, 997, 998, 999, 1001, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1021, 1022, 1026, 1028, 1029, 1032, 1033, 1034, 1036, 1037, 1038, 1042, 1045, 1046, 1047, 1049, 1051, 1053, 1054, 1056, 1058, 1059, 1060, 1061, 1063, 1064, 1067, 1068, 1069, 1070, 1074, 1075, 1077, 1078, 1079, 1081, 1084, 1085, 1086, 1088, 1091, 1092, 1093, 1094, 1096, 1097, 1098, 1100, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1111, 1112, 1113, 1115, 1116, 1118, 1120, 1122, 1123, 1127, 1131, 1132, 1133, 1135, 1139, 1140, 1142, 1143, 1144, 1146, 1147, 1149, 1150, 1152, 1156, 1157, 1160, 1161, 1162, 1164, 1166, 1168, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1179, 1180, 1182, 1185, 1186, 1190, 1192, 1193, 1194, 1196, 1200],
[0, 4, 5, 6, 10, 11, 12, 14, 15, 16, 17, 19, 20, 21, 22, 25, 26, 27, 29, 32, 34, 36, 37, 40, 41, 43, 46, 47, 48, 50, 54, 57, 59, 60, 63, 65, 66, 67, 69, 71, 75, 76, 77, 78, 80, 81, 82, 83, 84, 85, 88, 89, 91, 94, 95, 97, 98, 99, 100, 102, 105, 106, 110, 111, 112, 113, 114, 122, 124, 125, 128, 129, 132, 133, 134, 135, 137, 139, 141, 143, 145, 147, 150, 151, 152, 154, 156, 163, 164, 166, 167, 169, 170, 171, 172, 173, 178, 179, 180, 184, 185, 186, 189, 190, 191, 192, 193, 197, 198, 200, 202, 203, 204, 205, 206, 208, 209, 210, 214, 215, 216, 217, 218, 219, 221, 223, 224, 226, 227, 228, 230, 232, 234, 236, 240, 241, 244, 245, 247, 248, 251, 253, 256, 257, 258, 260, 261, 262, 264, 265, 269, 271, 273, 275, 276, 277, 280, 283, 284, 285, 286, 287, 288, 289, 290, 294, 295, 296, 297, 298, 299, 300, 301, 304, 305, 306, 309, 310, 312, 313, 315, 317, 318, 319, 320, 322, 324, 325, 326, 327, 328, 329, 330, 331, 333, 336, 339, 340, 342, 343, 345, 348, 349, 350, 351, 353, 358, 359, 360, 362, 363, 366, 368, 369, 371, 372, 373, 374, 376, 377, 378, 379, 381, 383, 386, 388, 389, 390, 391, 392, 393, 394, 395, 398, 399, 401, 403, 405, 410, 418, 419, 420, 425, 426, 431, 432, 433, 436, 437, 438, 439, 440, 441, 442, 443, 445, 447, 448, 449, 453, 454, 456, 459, 460, 462, 464, 467, 468, 470, 472, 473, 474, 475, 476, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 498, 505, 506, 508, 512, 515, 516, 517, 518, 519, 520, 521, 523, 524, 526, 527, 528, 530, 531, 532, 534, 535, 536, 538, 544, 545, 549, 550, 551, 553, 554, 555, 556, 559, 560, 561, 564, 566, 569, 574, 575, 578, 580, 582, 583, 584, 586, 589, 590, 591, 592, 594, 601, 602, 604, 605, 606, 607, 610, 612, 614, 615, 616, 618, 621, 622, 623, 624, 629, 630, 631, 632, 633, 637, 638, 639, 643, 644, 646, 647, 648, 649, 651, 652, 654, 655, 656, 658, 660, 664, 667, 668, 669, 671, 673, 674, 675, 676, 678, 680, 682, 683, 685, 687, 689, 691, 692, 693, 696, 697, 699, 700, 701, 703, 704, 705, 706, 708, 710, 712, 713, 714, 719, 720, 721, 724, 725, 726, 728, 730, 732, 734, 735, 736, 738, 739, 740, 745, 746, 748, 750, 751, 753, 755, 756, 757, 760, 761, 763, 766, 767, 769, 771, 772, 774, 776, 784, 785, 786, 787, 788, 791, 792, 794, 798, 800, 801, 804, 806, 808, 809, 811, 812, 813, 814, 815, 816, 817, 818, 820, 824, 826, 827, 828, 830, 831, 832, 833, 834, 835, 836, 837, 839, 841, 842, 843, 844, 847, 848, 850, 853, 858, 859, 860, 862, 863, 866, 868, 869, 870, 875, 878, 879, 880, 881, 883, 886, 887, 888, 889, 890, 892, 893, 894, 896, 897, 899, 900, 901, 903, 904, 906, 907, 910, 912, 917, 924, 926, 927, 931, 932, 934, 935, 936, 939, 940, 942, 944, 945, 946, 947, 948, 954, 956, 960, 964, 965, 966, 967, 971, 972, 973, 974, 978, 981, 983, 985, 986, 987, 989, 990, 991, 994, 996, 997, 998, 999, 1001, 1002, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1021, 1022, 1025, 1026, 1028, 1029, 1031, 1032, 1034, 1036, 1037, 1038, 1042, 1045, 1046, 1047, 1051, 1054, 1056, 1058, 1060, 1061, 1063, 1064, 1067, 1068, 1069, 1070, 1075, 1077, 1078, 1079, 1081, 1084, 1085, 1086, 1087, 1088, 1091, 1092, 1094, 1096, 1097, 1098, 1100, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1111, 1112, 1113, 1115, 1116, 1117, 1118, 1120, 1122, 1123, 1125, 1127, 1131, 1132, 1133, 1135, 1138, 1139, 1140, 1142, 1143, 1144, 1146, 1149, 1150, 1152, 1156, 1157, 1160, 1161, 1162, 1164, 1166, 1168, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1179, 1180, 1182, 1184, 1185, 1186, 1190, 1192, 1194, 1196, 1200],
[0, 3, 4, 5, 6, 10, 11, 12, 14, 15, 16, 17, 19, 20, 21, 22, 25, 26, 27, 32, 34, 36, 37, 39, 40, 41, 43, 46, 47, 50, 54, 57, 59, 60, 63, 65, 66, 67, 71, 75, 76, 77, 78, 80, 81, 82, 83, 84, 85, 88, 89, 94, 95, 97, 98, 99, 100, 102, 105, 106, 110, 111, 112, 113, 114, 122, 124, 125, 129, 132, 133, 134, 135, 137, 139, 141, 143, 145, 147, 150, 151, 152, 154, 156, 163, 164, 166, 167, 169, 170, 171, 172, 173, 174, 178, 179, 180, 184, 185, 186, 189, 191, 192, 193, 195, 197, 198, 200, 202, 203, 204, 205, 206, 207, 208, 209, 210, 214, 216, 217, 218, 219, 221, 223, 224, 226, 227, 230, 232, 234, 236, 240, 244, 245, 247, 248, 251, 253, 256, 257, 258, 260, 261, 262, 264, 265, 269, 271, 273, 275, 276, 277, 280, 283, 284, 285, 286, 287, 288, 289, 290, 294, 295, 296, 297, 298, 299, 300, 301, 304, 305, 306, 309, 310, 312, 313, 315, 317, 318, 320, 322, 324, 325, 326, 327, 328, 329, 330, 331, 333, 336, 339, 340, 341, 342, 343, 345, 348, 350, 351, 353, 358, 359, 360, 362, 365, 366, 367, 368, 369, 371, 372, 373, 374, 376, 377, 378, 379, 381, 383, 386, 388, 389, 390, 391, 392, 393, 394, 395, 399, 401, 403, 405, 406, 410, 418, 419, 420, 425, 426, 431, 432, 433, 436, 437, 438, 439, 440, 441, 442, 443, 445, 446, 447, 448, 449, 453, 454, 456, 459, 460, 462, 464, 467, 468, 470, 472, 473, 474, 475, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 501, 505, 506, 508, 512, 515, 516, 517, 518, 519, 520, 521, 523, 524, 526, 527, 528, 530, 531, 532, 534, 535, 536, 538, 544, 545, 549, 550, 551, 553, 554, 555, 556, 559, 560, 561, 564, 565, 566, 569, 574, 575, 578, 580, 582, 583, 584, 585, 586, 589, 590, 591, 592, 594, 601, 602, 604, 605, 606, 610, 612, 614, 615, 616, 618, 621, 622, 623, 624, 629, 630, 631, 632, 633, 637, 638, 639, 642, 643, 644, 646, 647, 648, 649, 651, 652, 654, 655, 658, 660, 664, 667, 668, 669, 671, 673, 674, 676, 677, 678, 680, 682, 683, 687, 689, 691, 692, 693, 695, 696, 697, 699, 700, 701, 703, 704, 705, 706, 708, 710, 712, 714, 720, 721, 724, 725, 726, 728, 732, 734, 735, 738, 740, 745, 748, 750, 751, 753, 755, 756, 757, 760, 763, 766, 767, 769, 771, 772, 776, 784, 785, 786, 787, 788, 791, 792, 793, 794, 798, 800, 801, 804, 806, 808, 809, 812, 813, 814, 815, 816, 817, 818, 820, 822, 824, 826, 828, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 848, 850, 853, 858, 859, 860, 862, 863, 866, 868, 870, 875, 878, 879, 880, 881, 883, 886, 887, 889, 890, 892, 893, 894, 896, 897, 899, 900, 901, 904, 906, 910, 912, 917, 919, 924, 926, 927, 931, 932, 934, 935, 939, 940, 944, 945, 948, 953, 956, 958, 960, 964, 965, 966, 967, 971, 972, 973, 974, 978, 981, 983, 985, 986, 987, 989, 990, 991, 994, 996, 997, 998, 999, 1001, 1002, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1021, 1022, 1025, 1026, 1028, 1032, 1034, 1036, 1037, 1038, 1042, 1044, 1045, 1046, 1047, 1049, 1050, 1051, 1054, 1056, 1060, 1061, 1063, 1064, 1067, 1068, 1069, 1070, 1073, 1075, 1077, 1078, 1084, 1085, 1086, 1088, 1091, 1092, 1094, 1096, 1097, 1098, 1100, 1103, 1104, 1105, 1106, 1107, 1109, 1111, 1112, 1113, 1115, 1116, 1117, 1118, 1120, 1122, 1123, 1125, 1126, 1127, 1131, 1132, 1133, 1135, 1138, 1139, 1140, 1142, 1143, 1144, 1145, 1146, 1149, 1150, 1152, 1156, 1157, 1160, 1161, 1162, 1164, 1166, 1168, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1178, 1179, 1180, 1182, 1184, 1185, 1186, 1194, 1195, 1196, 1200],
# Two lists from after the test had just finished, included so that cancellations can be detected.
# It takes about a month for the first shipment to arrive, so need to follow up at least for two
# shipments to see if package design may have caused a cancellation.
[3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 25, 26, 27, 32, 34, 35, 37, 39, 40, 41, 46, 47, 48, 54, 55, 57, 59, 60, 62, 63, 66, 67, 71, 74, 75, 76, 77, 78, 80, 81, 82, 83, 84, 85, 88, 89, 94, 95, 97, 98, 99, 100, 102, 105, 106, 107, 111, 112, 113, 114, 115, 116, 119, 122, 124, 125, 129, 132, 133, 134, 135, 137, 138, 141, 143, 144, 145, 147, 148, 150, 151, 152, 154, 156, 157, 163, 164, 165, 166, 167, 169, 170, 171, 172, 173, 174, 176, 178, 179, 180, 183, 184, 185, 186, 189, 191, 192, 193, 195, 197, 198, 200, 202, 203, 204, 205, 206, 207, 208, 209, 210, 214, 216, 218, 219, 221, 222, 223, 224, 226, 227, 230, 231, 232, 233, 234, 235, 236, 239, 240, 244, 245, 247, 248, 250, 251, 253, 254, 256, 257, 258, 260, 261, 262, 264, 265, 269, 271, 273, 277, 280, 283, 284, 285, 286, 287, 288, 289, 290, 293, 295, 296, 297, 298, 299, 300, 301, 304, 305, 306, 309, 312, 313, 317, 318, 322, 324, 325, 327, 328, 329, 330, 331, 333, 336, 339, 340, 341, 342, 343, 345, 347, 348, 350, 351, 352, 353, 357, 358, 359, 360, 362, 365, 366, 368, 369, 371, 372, 373, 374, 377, 378, 379, 383, 386, 388, 389, 390, 391, 392, 393, 395, 399, 403, 405, 406, 410, 413, 415, 418, 419, 420, 422, 424, 425, 426, 429, 431, 432, 433, 435, 436, 438, 439, 440, 441, 442, 443, 445, 446, 447, 448, 449, 450, 451, 452, 453, 456, 459, 460, 462, 464, 467, 468, 470, 472, 473, 474, 475, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 505, 506, 508, 509, 511, 512, 515, 516, 517, 518, 519, 520, 521, 523, 524, 526, 527, 528, 530, 531, 532, 534, 535, 538, 544, 545, 549, 550, 551, 553, 554, 555, 556, 558, 559, 560, 561, 562, 564, 565, 566, 568, 569, 570, 574, 575, 578, 579, 580, 582, 583, 584, 585, 586, 589, 590, 591, 594, 596, 601, 604, 605, 606, 609, 610, 612, 614, 615, 616, 617, 618, 621, 624, 625, 629, 630, 631, 632, 633, 637, 638, 639, 642, 643, 644, 646, 647, 648, 649, 651, 652, 654, 655, 658, 659, 660, 661, 662, 667, 668, 669, 671, 673, 674, 676, 677, 678, 683, 687, 689, 691, 693, 695, 696, 697, 699, 700, 701, 702, 703, 704, 705, 706, 708, 711, 712, 714, 717, 721, 724, 725, 727, 728, 729, 732, 734, 735, 740, 741, 742, 745, 750, 751, 753, 755, 756, 757, 760, 762, 763, 764, 765, 766, 767, 769, 771, 772, 773, 776, 782, 784, 785, 786, 788, 791, 792, 793, 794, 798, 799, 800, 804, 806, 808, 809, 812, 813, 814, 815, 816, 817, 818, 820, 822, 823, 824, 825, 828, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 848, 850, 852, 853, 854, 858, 859, 860, 862, 863, 866, 868, 870, 873, 875, 877, 878, 879, 880, 881, 883, 886, 887, 889, 890, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 904, 905, 906, 910, 912, 917, 918, 919, 924, 926, 927, 931, 934, 935, 939, 940, 944, 945, 953, 956, 957, 958, 960, 964, 965, 966, 967, 971, 972, 974, 978, 979, 980, 981, 983, 985, 986, 987, 990, 991, 993, 994, 997, 998, 999, 1001, 1005, 1006, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1020, 1021, 1022, 1024, 1025, 1026, 1032, 1034, 1037, 1038, 1042, 1044, 1045, 1046, 1047, 1049, 1050, 1051, 1052, 1054, 1056, 1060, 1061, 1063, 1064, 1067, 1068, 1069, 1070, 1073, 1075, 1077, 1078, 1084, 1085, 1088, 1089, 1091, 1092, 1094, 1096, 1097, 1098, 1100, 1103, 1104, 1105, 1106, 1107, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1125, 1126, 1127, 1129, 1131, 1132, 1133, 1134, 1137, 1138, 1139, 1140, 1142, 1143, 1144, 1145, 1146, 1148, 1149, 1150, 1151, 1152, 1156, 1157, 1160, 1161, 1162, 1164, 1165, 1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1179, 1180, 1182, 1184, 1185, 1186, 1189, 1194, 1195, 1196, 1197, 1199, 1200],
[4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 25, 26, 27, 32, 34, 35, 37, 38, 39, 40, 41, 46, 47, 53, 54, 55, 57, 59, 60, 62, 63, 65, 66, 67, 71, 74, 75, 76, 77, 78, 80, 81, 82, 83, 84, 85, 87, 88, 89, 94, 95, 97, 98, 99, 100, 102, 105, 106, 107, 108, 111, 112, 113, 114, 115, 116, 119, 121, 124, 125, 132, 133, 135, 138, 141, 143, 144, 145, 148, 150, 151, 152, 156, 157, 159, 163, 164, 165, 166, 167, 169, 170, 171, 172, 173, 176, 178, 179, 180, 181, 183, 185, 186, 189, 191, 192, 193, 195, 197, 198, 200, 202, 203, 204, 205, 206, 207, 208, 209, 210, 214, 216, 218, 219, 221, 222, 223, 224, 227, 230, 231, 232, 233, 234, 235, 236, 239, 240, 242, 244, 247, 248, 250, 251, 253, 254, 256, 257, 258, 260, 261, 262, 264, 269, 271, 272, 273, 277, 280, 283, 284, 285, 286, 287, 288, 289, 290, 293, 296, 297, 298, 299, 300, 301, 304, 305, 307, 309, 312, 313, 317, 318, 322, 324, 325, 327, 328, 330, 331, 333, 336, 338, 339, 340, 342, 343, 345, 347, 348, 350, 351, 352, 353, 357, 358, 359, 362, 365, 366, 368, 369, 372, 373, 374, 377, 378, 379, 383, 386, 389, 390, 391, 393, 395, 399, 403, 405, 406, 413, 418, 419, 422, 424, 426, 429, 430, 431, 432, 433, 435, 436, 438, 439, 440, 441, 442, 443, 445, 446, 447, 448, 449, 450, 451, 452, 453, 456, 459, 460, 462, 464, 467, 468, 470, 472, 473, 474, 475, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 505, 506, 508, 509, 511, 512, 515, 516, 517, 518, 519, 520, 521, 523, 524, 526, 527, 528, 530, 531, 532, 534, 535, 538, 543, 544, 546, 549, 550, 551, 553, 554, 555, 556, 558, 559, 560, 561, 562, 564, 566, 568, 569, 570, 574, 575, 578, 579, 580, 583, 584, 585, 586, 589, 590, 591, 593, 594, 596, 601, 604, 606, 609, 610, 612, 614, 615, 616, 617, 618, 621, 624, 625, 628, 629, 630, 631, 632, 633, 634, 637, 638, 642, 643, 644, 646, 647, 648, 649, 651, 652, 654, 655, 658, 659, 660, 661, 662, 665, 667, 668, 669, 671, 673, 674, 676, 678, 683, 684, 686, 687, 689, 691, 695, 696, 697, 699, 700, 701, 702, 703, 704, 705, 706, 708, 711, 712, 717, 721, 723, 725, 727, 728, 729, 732, 734, 735, 740, 741, 742, 745, 750, 751, 753, 755, 757, 760, 762, 763, 764, 766, 767, 769, 771, 772, 773, 776, 782, 784, 785, 786, 788, 792, 793, 794, 798, 799, 800, 804, 806, 808, 809, 812, 813, 814, 815, 816, 817, 818, 820, 822, 823, 825, 828, 830, 831, 832, 833, 834, 835, 837, 838, 839, 840, 841, 842, 843, 848, 850, 852, 854, 858, 859, 860, 862, 863, 866, 868, 870, 873, 875, 877, 878, 879, 880, 881, 883, 884, 887, 889, 890, 893, 894, 895, 897, 898, 899, 900, 901, 902, 905, 906, 910, 912, 917, 918, 919, 924, 927, 934, 935, 938, 939, 940, 941, 944, 945, 956, 957, 960, 962, 964, 965, 966, 967, 971, 972, 974, 978, 979, 980, 981, 983, 986, 990, 991, 993, 994, 995, 997, 998, 999, 1001, 1005, 1006, 1008, 1009, 1010, 1011, 1012, 1013, 1015, 1017, 1018, 1020, 1021, 1022, 1024, 1025, 1026, 1032, 1034, 1037, 1038, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1049, 1050, 1051, 1052, 1054, 1056, 1060, 1061, 1063, 1067, 1069, 1070, 1073, 1075, 1077, 1078, 1084, 1085, 1088, 1089, 1091, 1092, 1094, 1096, 1098, 1100, 1103, 1104, 1106, 1107, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1125, 1127, 1129, 1131, 1132, 1133, 1134, 1137, 1138, 1139, 1142, 1143, 1144, 1145, 1146, 1148, 1149, 1150, 1151, 1152, 1157, 1160, 1161, 1162, 1164, 1165, 1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1180, 1182, 1184, 1186, 1189, 1194, 1195, 1196, 1197, 1199]
]
# Shows which customers got the new package design. 'A' means new nicer, but more expensive design.
ab_groups = {0: 'B', 1: 'B', 2: 'A', 3: 'A', 4: 'B', 5: 'A', 6: 'A', 7: 'B', 8: 'B', 9: 'A', 10: 'B', 11: 'A', 12: 'B', 14: 'A', 15: 'B', 16: 'A', 17: 'A', 18: 'A', 19: 'B', 20: 'A', 21: 'A', 22: 'A', 23: 'B', 24: 'B', 25: 'A', 26: 'B', 27: 'B', 28: 'B', 29: 'B', 30: 'B', 31: 'B', 32: 'A', 33: 'B', 34: 'A', 36: 'B', 37: 'A', 39: 'A', 40: 'A', 41: 'A', 42: 'A', 43: 'B', 44: 'A', 45: 'A', 46: 'A', 47: 'B', 48: 'B', 49: 'A', 50: 'B', 51: 'B', 52: 'A', 54: 'A', 56: 'B', 57: 'B', 58: 'B', 59: 'B', 60: 'B', 61: 'B', 63: 'A', 64: 'A', 65: 'B', 66: 'B', 67: 'A', 68: 'A', 69: 'B', 70: 'B', 71: 'A', 72: 'A', 73: 'A', 75: 'A', 76: 'A', 77: 'B', 78: 'A', 79: 'A', 80: 'B', 81: 'B', 82: 'B', 83: 'A', 84: 'B', 85: 'B', 86: 'A', 88: 'B', 89: 'B', 90: 'B', 91: 'A', 92: 'A', 93: 'A', 94: 'B', 95: 'A', 96: 'A', 97: 'A', 98: 'B', 99: 'B', 100: 'A', 101: 'B', 102: 'B', 103: 'B', 104: 'A', 105: 'B', 106: 'B', 109: 'B', 110: 'B', 111: 'A', 112: 'A', 113: 'B', 114: 'B', 117: 'A', 118: 'B', 120: 'A', 122: 'A', 123: 'B', 124: 'A', 125: 'B', 126: 'A', 127: 'A', 128: 'A', 129: 'B', 130: 'B', 131: 'B', 132: 'A', 133: 'B', 134: 'B', 135: 'B', 136: 'B', 137: 'A', 139: 'B', 140: 'B', 141: 'B', 142: 'A', 143: 'B', 145: 'B', 146: 'A', 147: 'B', 149: 'B', 150: 'B', 151: 'B', 152: 'B', 153: 'B', 154: 'A', 155: 'B', 156: 'B', 158: 'B', 160: 'B', 161: 'A', 162: 'A', 163: 'A', 164: 'A', 166: 'A', 167: 'B', 168: 'B', 169: 'B', 170: 'B', 171: 'A', 172: 'A', 173: 'B', 174: 'B', 175: 'A', 177: 'A', 178: 'A', 179: 'B', 180: 'B', 182: 'B', 184: 'A', 185: 'A', 186: 'A', 187: 'B', 188: 'A', 189: 'A', 190: 'A', 191: 'A', 192: 'A', 193: 'A', 194: 'A', 195: 'B', 196: 'A', 197: 'A', 198: 'B', 199: 'B', 200: 'B', 201: 'A', 202: 'A', 203: 'B', 204: 'B', 205: 'B', 206: 'B', 207: 'B', 208: 'A', 209: 'A', 210: 'A', 211: 'A', 212: 'A', 213: 'B', 214: 'B', 215: 'B', 216: 'A', 217: 'A', 218: 'B', 219: 'A', 220: 'A', 221: 'B', 223: 'B', 224: 'A', 225: 'B', 226: 'B', 227: 'A', 228: 'A', 229: 'A', 230: 'B', 232: 'A', 234: 'A', 236: 'B', 237: 'B', 238: 'A', 240: 'A', 241: 'B', 243: 'B', 244: 'B', 245: 'B', 246: 'A', 247: 'B', 248: 'A', 249: 'A', 251: 'B', 252: 'A', 253: 'A', 255: 'A', 256: 'B', 257: 'A', 258: 'B', 259: 'A', 260: 'B', 261: 'B', 262: 'B', 263: 'B', 264: 'A', 265: 'A', 266: 'B', 267: 'B', 268: 'B', 269: 'A', 270: 'A', 271: 'A', 273: 'A', 274: 'B', 275: 'A', 276: 'B', 277: 'A', 278: 'A', 279: 'A', 280: 'B', 281: 'A', 282: 'A', 283: 'A', 284: 'A', 285: 'A', 286: 'A', 287: 'A', 288: 'A', 289: 'B', 290: 'A', 291: 'A', 292: 'B', 294: 'A', 295: 'B', 296: 'A', 297: 'B', 298: 'B', 299: 'B', 300: 'B', 301: 'B', 302: 'B', 303: 'A', 304: 'B', 305: 'A', 306: 'B', 308: 'A', 309: 'A', 310: 'A', 311: 'B', 312: 'B', 313: 'A', 314: 'A', 315: 'B', 316: 'A', 317: 'B', 318: 'B', 319: 'B', 320: 'A', 321: 'A', 322: 'A', 323: 'B', 324: 'B', 325: 'A', 326: 'A', 327: 'B', 328: 'A', 329: 'A', 330: 'A', 331: 'B', 332: 'A', 333: 'A', 334: 'A', 335: 'A', 336: 'A', 337: 'A', 339: 'A', 340: 'A', 341: 'B', 342: 'B', 343: 'A', 344: 'A', 345: 'B', 346: 'B', 348: 'B', 349: 'B', 350: 'A', 351: 'A', 353: 'B', 354: 'B', 355: 'A', 356: 'A', 358: 'B', 359: 'A', 360: 'A', 361: 'B', 362: 'A', 363: 'B', 364: 'A', 365: 'B', 366: 'B', 367: 'A', 368: 'B', 369: 'B', 370: 'B', 371: 'B', 372: 'B', 373: 'B', 374: 'B', 375: 'B', 376: 'A', 377: 'A', 378: 'B', 379: 'A', 380: 'A', 381: 'B', 382: 'B', 383: 'A', 384: 'B', 385: 'A', 386: 'A', 387: 'B', 388: 'B', 389: 'B', 390: 'A', 391: 'A', 392: 'B', 393: 'A', 394: 'A', 395: 'B', 396: 'A', 397: 'A', 398: 'A', 399: 'B', 400: 'B', 401: 'B', 402: 'B', 403: 'A', 404: 'B', 405: 'A', 406: 'B', 407: 'B', 408: 'A', 409: 'B', 410: 'B', 411: 'A', 412: 'B', 414: 'B', 416: 'A', 417: 'B', 418: 'B', 419: 'A', 420: 'A', 421: 'B', 423: 'A', 425: 'B', 426: 'A', 427: 'B', 428: 'B', 431: 'B', 432: 'A', 433: 'B', 434: 'B', 436: 'B', 437: 'B', 438: 'B', 439: 'A', 440: 'B', 441: 'A', 442: 'B', 443: 'A', 444: 'A', 445: 'B', 446: 'B', 447: 'A', 448: 'A', 449: 'A', 453: 'B', 454: 'B', 455: 'B', 456: 'A', 457: 'B', 458: 'B', 459: 'A', 460: 'B', 461: 'B', 462: 'B', 463: 'A', 464: 'A', 465: 'A', 466: 'B', 467: 'B', 468: 'B', 469: 'B', 470: 'B', 471: 'B', 472: 'B', 473: 'A', 474: 'A', 475: 'A', 476: 'A', 477: 'B', 478: 'B', 479: 'A', 480: 'A', 481: 'B', 482: 'A', 483: 'A', 484: 'B', 485: 'B', 486: 'B', 487: 'A', 488: 'B', 489: 'B', 490: 'A', 491: 'B', 493: 'B', 494: 'B', 495: 'A', 496: 'B', 497: 'A', 498: 'A', 499: 'B', 500: 'A', 501: 'B', 502: 'A', 503: 'A', 504: 'A', 505: 'B', 506: 'A', 507: 'A', 508: 'A', 510: 'B', 512: 'A', 513: 'A', 514: 'A', 515: 'A', 516: 'B', 517: 'B', 518: 'A', 519: 'A', 520: 'A', 521: 'B', 522: 'B', 523: 'B', 524: 'A', 525: 'A', 526: 'A', 527: 'A', 528: 'B', 529: 'A', 530: 'A', 531: 'B', 532: 'A', 533: 'B', 534: 'B', 535: 'A', 536: 'B', 537: 'B', 538: 'B', 539: 'A', 540: 'B', 541: 'B', 542: 'B', 544: 'B', 545: 'A', 547: 'B', 548: 'B', 549: 'A', 550: 'B', 551: 'A', 552: 'B', 553: 'A', 554: 'A', 555: 'A', 556: 'B', 557: 'B', 559: 'A', 560: 'A', 561: 'B', 563: 'A', 564: 'A', 565: 'A', 566: 'B', 567: 'A', 569: 'B', 571: 'A', 572: 'B', 573: 'B', 574: 'B', 575: 'B', 576: 'A', 577: 'B', 578: 'A', 580: 'A', 581: 'B', 582: 'A', 583: 'A', 584: 'A', 585: 'A', 586: 'B', 587: 'B', 588: 'A', 589: 'A', 590: 'A', 591: 'A', 592: 'A', 594: 'A', 595: 'A', 597: 'A', 598: 'B', 599: 'B', 600: 'A', 601: 'A', 602: 'B', 603: 'A', 604: 'B', 605: 'B', 606: 'B', 607: 'B', 608: 'A', 610: 'A', 611: 'A', 612: 'B', 613: 'B', 614: 'A', 615: 'A', 616: 'B', 618: 'A', 619: 'A', 620: 'B', 621: 'A', 622: 'A', 623: 'B', 624: 'B', 626: 'B', 627: 'B', 629: 'B', 630: 'A', 631: 'A', 632: 'B', 633: 'A', 635: 'A', 636: 'A', 637: 'A', 638: 'B', 639: 'B', 640: 'B', 641: 'B', 642: 'B', 643: 'B', 644: 'B', 645: 'A', 646: 'B', 647: 'B', 648: 'B', 649: 'A', 650: 'B', 651: 'A', 652: 'A', 653: 'B', 654: 'A', 655: 'B', 656: 'B', 657: 'A', 658: 'B', 660: 'A', 663: 'A', 664: 'B', 666: 'B', 667: 'A', 668: 'B', 669: 'B', 670: 'A', 671: 'A', 672: 'A', 673: 'B', 674: 'B', 675: 'B', 676: 'B', 677: 'A', 678: 'A', 679: 'A', 680: 'A', 681: 'A', 682: 'B', 683: 'B', 685: 'A', 687: 'B', 688: 'B', 689: 'A', 690: 'B', 691: 'A', 692: 'A', 693: 'A', 694: 'B', 695: 'A', 696: 'B', 697: 'A', 698: 'B', 699: 'B', 700: 'A', 701: 'A', 703: 'A', 704: 'A', 705: 'A', 706: 'A', 707: 'B', 708: 'A', 709: 'B', 710: 'A', 712: 'A', 713: 'A', 714: 'B', 715: 'B', 716: 'A', 718: 'B', 719: 'A', 720: 'B', 721: 'B', 722: 'A', 724: 'A', 725: 'A', 726: 'A', 728: 'B', 730: 'A', 731: 'A', 732: 'B', 733: 'B', 734: 'A', 735: 'B', 736: 'B', 737: 'B', 738: 'A', 739: 'B', 740: 'A', 743: 'A', 744: 'A', 745: 'B', 746: 'A', 747: 'B', 748: 'B', 749: 'A', 750: 'A', 751: 'B', 752: 'B', 753: 'B', 754: 'B', 755: 'B', 756: 'A', 757: 'A', 758: 'B', 759: 'B', 760: 'A', 761: 'A', 763: 'A', 766: 'B', 767: 'B', 768: 'A', 769: 'B', 770: 'B', 771: 'B', 772: 'A', 774: 'B', 775: 'A', 776: 'B', 777: 'B', 778: 'B', 779: 'A', 780: 'B', 781: 'A', 783: 'A', 784: 'B', 785: 'B', 786: 'A', 787: 'A', 788: 'A', 789: 'B', 790: 'A', 791: 'A', 792: 'A', 793: 'A', 794: 'B', 795: 'B', 796: 'A', 797: 'B', 798: 'B', 800: 'A', 801: 'A', 802: 'A', 803: 'B', 804: 'A', 805: 'A', 806: 'A', 807: 'A', 808: 'B', 809: 'A', 810: 'B', 811: 'A', 812: 'B', 813: 'B', 814: 'A', 815: 'B', 816: 'A', 817: 'B', 818: 'B', 819: 'A', 820: 'A', 821: 'B', 822: 'A', 824: 'B', 826: 'A', 827: 'B', 828: 'A', 829: 'A', 830: 'B', 831: 'B', 832: 'B', 833: 'B', 834: 'A', 835: 'A', 836: 'A', 837: 'B', 838: 'A', 839: 'A', 840: 'A', 841: 'A', 842: 'B', 843: 'B', 844: 'B', 845: 'B', 846: 'A', 847: 'B', 848: 'A', 849: 'A', 850: 'A', 851: 'B', 853: 'B', 855: 'B', 856: 'A', 857: 'A', 858: 'B', 859: 'A', 860: 'A', 861: 'B', 862: 'B', 863: 'B', 864: 'B', 865: 'A', 866: 'B', 867: 'A', 868: 'B', 869: 'B', 870: 'A', 871: 'A', 872: 'A', 874: 'B', 875: 'B', 876: 'A', 878: 'B', 879: 'A', 880: 'A', 881: 'B', 882: 'A', 883: 'B', 885: 'A', 886: 'A', 887: 'A', 888: 'A', 889: 'A', 890: 'A', 891: 'B', 892: 'A', 893: 'A', 894: 'B', 896: 'A', 897: 'A', 899: 'B', 900: 'B', 901: 'B', 903: 'B', 904: 'B', 906: 'A', 907: 'B', 908: 'B', 909: 'A', 910: 'A', 911: 'A', 912: 'A', 913: 'A', 914: 'A', 915: 'A', 916: 'B', 917: 'B', 919: 'A', 920: 'B', 921: 'B', 922: 'B', 923: 'B', 924: 'B', 925: 'A', 926: 'B', 927: 'B', 928: 'A', 929: 'A', 930: 'B', 931: 'B', 932: 'A', 933: 'B', 934: 'B', 935: 'B', 936: 'A', 937: 'B', 939: 'B', 940: 'A', 942: 'A', 943: 'B', 944: 'A', 945: 'A', 946: 'B', 947: 'B', 948: 'B', 949: 'B', 950: 'B', 951: 'A', 952: 'A', 953: 'B', 954: 'A', 955: 'B', 956: 'A', 958: 'B', 959: 'B', 960: 'B', 961: 'B', 963: 'A', 964: 'A', 965: 'B', 966: 'A', 967: 'B', 968: 'B', 969: 'B', 970: 'B', 971: 'A', 972: 'A', 973: 'B', 974: 'B', 975: 'B', 976: 'B', 977: 'B', 978: 'A', 981: 'B', 982: 'A', 983: 'A', 984: 'A', 985: 'A', 986: 'A', 987: 'B', 988: 'B', 989: 'B', 990: 'B', 991: 'A', 992: 'B', 994: 'B', 996: 'B', 997: 'A', 998: 'A', 999: 'A', 1000: 'B', 1001: 'B', 1002: 'A', 1003: 'B', 1004: 'B', 1005: 'B', 1006: 'A', 1007: 'B', 1008: 'B', 1009: 'A', 1010: 'B', 1011: 'A', 1012: 'B', 1013: 'A', 1014: 'A', 1015: 'B', 1016: 'B', 1017: 'A', 1018: 'B', 1019: 'A', 1021: 'A', 1022: 'B', 1023: 'B', 1025: 'B', 1026: 'A', 1027: 'B', 1028: 'A', 1029: 'A', 1030: 'A', 1031: 'B', 1032: 'B', 1033: 'A', 1034: 'A', 1035: 'B', 1036: 'B', 1037: 'A', 1038: 'A', 1039: 'B', 1040: 'B', 1042: 'A', 1044: 'A', 1045: 'A', 1046: 'B', 1047: 'A', 1048: 'B', 1049: 'B', 1050: 'A', 1051: 'A', 1053: 'A', 1054: 'A', 1055: 'A', 1056: 'B', 1057: 'A', 1058: 'A', 1059: 'A', 1060: 'A', 1061: 'A', 1062: 'B', 1063: 'B', 1064: 'A', 1065: 'B', 1066: 'A', 1067: 'B', 1068: 'A', 1069: 'B', 1070: 'B', 1071: 'A', 1072: 'A', 1073: 'B', 1074: 'A', 1075: 'B', 1076: 'B', 1077: 'B', 1078: 'B', 1079: 'A', 1080: 'A', 1081: 'A', 1082: 'B', 1083: 'B', 1084: 'A', 1085: 'A', 1086: 'A', 1087: 'A', 1088: 'B', 1090: 'A', 1091: 'A', 1092: 'B', 1093: 'B', 1094: 'B', 1095: 'A', 1096: 'A', 1097: 'A', 1098: 'B', 1099: 'B', 1100: 'B', 1101: 'A', 1102: 'B', 1103: 'B', 1104: 'A', 1105: 'A', 1106: 'B', 1107: 'A', 1108: 'B', 1109: 'B', 1111: 'B', 1112: 'B', 1113: 'B', 1115: 'B', 1116: 'B', 1117: 'A', 1118: 'B', 1120: 'B', 1122: 'B', 1123: 'B', 1124: 'B', 1125: 'B', 1126: 'B', 1127: 'A', 1128: 'A', 1130: 'A', 1131: 'A', 1132: 'B', 1133: 'B', 1135: 'A', 1136: 'B', 1138: 'A', 1139: 'A', 1140: 'B', 1141: 'A', 1142: 'A', 1143: 'B', 1144: 'B', 1145: 'B', 1146: 'A', 1147: 'B', 1149: 'B', 1150: 'A', 1152: 'A', 1153: 'A', 1154: 'A', 1155: 'B', 1156: 'B', 1157: 'B', 1158: 'B', 1159: 'B', 1160: 'B', 1161: 'B', 1162: 'A', 1163: 'A', 1164: 'A', 1166: 'B', 1168: 'A', 1170: 'B', 1171: 'A', 1172: 'A', 1173: 'A', 1174: 'B', 1175: 'B', 1176: 'A', 1177: 'A', 1178: 'B', 1179: 'B', 1180: 'B', 1181: 'A', 1182: 'B', 1183: 'A', 1184: 'A', 1185: 'A', 1186: 'A', 1187: 'A', 1188: 'A', 1190: 'A', 1191: 'B', 1192: 'A', 1193: 'B', 1194: 'B', 1195: 'A', 1196: 'B', 1198: 'B', 1200: 'B'}
# Exclude people who only subscribed for one month from the test (received only 1 or 2 shipments).
# These churns could not have been affected by box design because of shipping time.
shipments = reduce(lambda a,b:a+b, shipping_lists, [])
from collections import Counter
excluded_customers = [k for k, v in Counter(shipments).items() if v <= 2]
customers = [uid for uid in set(shipments) if uid not in excluded_customers]
# Make a True, True, True, False, False... kind of sequence out of whether a customer received each shipment.
shipment_sequence = lambda uid: [s.count(uid) == 1 for s in shipping_lists]
# "Cancelled" means user receives a package, then afterwards does not.
did_user_cancel = lambda uid: (True, False) in zip(shipment_sequence(uid), shipment_sequence(uid)[1:])
# Now how many cancelled in each group?
for group in ['Overall', 'A', 'B']:
if group == 'Overall':
group_customers = customers
else:
group_customers = [uid for uid in customers if ab_groups[uid] == group]
cancel_count = [did_user_cancel(uid) for uid in group_customers].count(True)
cancel_ratio = float(cancel_count) / len(group_customers)
f = (group, cancel_ratio * 100, cancel_count, len(group_customers))
print '{} cancel ratio was {:.2f}% ({} / {})'.format(*f)
# To get the p-value:
# R -q -e 'fisher.test(rbind(c(439,168),c(442,175)))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment