Prerequisites Python 3.9 or higher Running the program There are two ways to run the program: python3.9 challenge.py Enter input and press enter or send newline echo input | python3.9 challenge.py