Had to rewrite whole solution due to getting the example input right, but wrong on the actual puzzle input. Off by like 20.