input.txt (1278B)
1 Monkey 0: 2 Starting items: 89, 73, 66, 57, 64, 80 3 Operation: new = old * 3 4 Test: divisible by 13 5 If true: throw to monkey 6 6 If false: throw to monkey 2 7 8 Monkey 1: 9 Starting items: 83, 78, 81, 55, 81, 59, 69 10 Operation: new = old + 1 11 Test: divisible by 3 12 If true: throw to monkey 7 13 If false: throw to monkey 4 14 15 Monkey 2: 16 Starting items: 76, 91, 58, 85 17 Operation: new = old * 13 18 Test: divisible by 7 19 If true: throw to monkey 1 20 If false: throw to monkey 4 21 22 Monkey 3: 23 Starting items: 71, 72, 74, 76, 68 24 Operation: new = old * old 25 Test: divisible by 2 26 If true: throw to monkey 6 27 If false: throw to monkey 0 28 29 Monkey 4: 30 Starting items: 98, 85, 84 31 Operation: new = old + 7 32 Test: divisible by 19 33 If true: throw to monkey 5 34 If false: throw to monkey 7 35 36 Monkey 5: 37 Starting items: 78 38 Operation: new = old + 8 39 Test: divisible by 5 40 If true: throw to monkey 3 41 If false: throw to monkey 0 42 43 Monkey 6: 44 Starting items: 86, 70, 60, 88, 88, 78, 74, 83 45 Operation: new = old + 4 46 Test: divisible by 11 47 If true: throw to monkey 1 48 If false: throw to monkey 2 49 50 Monkey 7: 51 Starting items: 81, 58 52 Operation: new = old + 5 53 Test: divisible by 17 54 If true: throw to monkey 3 55 If false: throw to monkey 5