Advent of Code 2018: Day 9