Exercise 1-12: Write a program that prints its input one word per line