• + 8 comments

    For Python programmers: The key to solve this problem is undesrtanding how to read "stdin". Take a look at "Standard File Objects" section on this guide:

    https://en.wikibooks.org/wiki/Python_Programming/Input_and_Output