1 2 3 4 5 6 7 8 9
import sys def get_input_stdin(): for line in sys.stdin: line = line.strip() if not line: continue yield line