An example how to read input/output efficiently.