def stream_stdin_lines():
stdin = os.fdopen(sys.stdin.fileno(), '<STR_LIT:r>', <NUM_LIT:0>)<EOL>while True:<EOL><INDENT>line = stdin.readline()<EOL>if line:<EOL><INDENT>yield line<EOL><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>
Generator for unbuffered line reading from STDIN