input (1277B)
1 Monkey 0: 2 Starting items: 80 3 Operation: new = old * 5 4 Test: divisible by 2 5 If true: throw to monkey 4 6 If false: throw to monkey 3 7 8 Monkey 1: 9 Starting items: 75, 83, 74 10 Operation: new = old + 7 11 Test: divisible by 7 12 If true: throw to monkey 5 13 If false: throw to monkey 6 14 15 Monkey 2: 16 Starting items: 86, 67, 61, 96, 52, 63, 73 17 Operation: new = old + 5 18 Test: divisible by 3 19 If true: throw to monkey 7 20 If false: throw to monkey 0 21 22 Monkey 3: 23 Starting items: 85, 83, 55, 85, 57, 70, 85, 52 24 Operation: new = old + 8 25 Test: divisible by 17 26 If true: throw to monkey 1 27 If false: throw to monkey 5 28 29 Monkey 4: 30 Starting items: 67, 75, 91, 72, 89 31 Operation: new = old + 4 32 Test: divisible by 11 33 If true: throw to monkey 3 34 If false: throw to monkey 1 35 36 Monkey 5: 37 Starting items: 66, 64, 68, 92, 68, 77 38 Operation: new = old * 2 39 Test: divisible by 19 40 If true: throw to monkey 6 41 If false: throw to monkey 2 42 43 Monkey 6: 44 Starting items: 97, 94, 79, 88 45 Operation: new = old * old 46 Test: divisible by 5 47 If true: throw to monkey 2 48 If false: throw to monkey 7 49 50 Monkey 7: 51 Starting items: 77, 85 52 Operation: new = old + 6 53 Test: divisible by 13 54 If true: throw to monkey 4 55 If false: throw to monkey 0