#include <stdio.h>

/* copy input to output; 1st version */

main()
{
	int c;

	c = getchar();
	while (c != '\n') {
	   putchar(c);
	   c = getchar();
	}
}


/*

* Why do we declare c an int, not a char?

* getchar() buffers input characters until a new line or EOF is entered, at which point if there is an output function executed, the buffer is written and then emptied.

 */


