1 """Simulate unreasonably many lanternfish pop growth"""
3 fishes = {x: 0 for x in range(9)}
5 with open("6_input.txt") as f:
6 for age in [int(x) for x in f.read().split(",")]:
9 for day in range(100000):
11 next_day_fishes = {x: 0 for x in range(9)}
12 next_day_fishes[8] = fishes[0]
13 next_day_fishes[6] = fishes[0]
16 next_day_fishes[i] += fishes[i+1]
18 fishes = next_day_fishes
21 print(sum(fishes.values()))