Use stdin for input, and print result to stdout.