/*
 *	This program takes input and writes
 *	single words on separate lines
 */

#include <stdio.h>

main()
{
	int c;

				/*
				 * Take input, a character at a time,
				 * until EOF
				 */

	while ((c = getchar()) != EOF)
	  {
					/* If c is a space, tab, or newline- */

		if (c == '\n' || c == ' ' || c == '\t')
		  {
					/* Parse word by outputting newline */

			putchar('\n');
		      }

					/* Otherwise... */

		else
		  {
			putchar(c); /* Print the character */
		      }
	      }
      }
