Input:
359716482 867345912 413928675 398574126 546281739 172639548 984163257 621857394 735492861
my co
You can use readlines() method of file objects:
readlines()
import sys userInput = sys.stdin.readlines()