#!/usr/bin/env python import sys while True: input = sys.stdin.read(256) if input == "": # EOF break sys.stdout.write(input[:1]) sys.stdout.flush()