reading stdin and printing to stdout