Created this solution first, since the implementation seemed fairly easy. Turns out it was.
Could use some more list comprehensions though
Expecting the input.txt in the same folder as the main.py python main.py
input.txt
main.py
python main.py