def parse(filename):
    """Return the initial list of ages of lanternfish."""
    with open(filename) as f:
        ages = [int(n) for n in f.read().split(',')]
    fish = [0] * 9
    for age in ages:
        fish[age] += 1
    return fish