import sys def get_input_stdin(): for line in sys.stdin: line = line.strip() if not line: continue yield line