/*
 * Problem 1-9
 * Write a program to copy its input to its output, 
 * replacing each string of one or more blanks by a single blank.
 * Copyright (c) 1998 by John Weber.  All rights reserved.
 */
#include <stdio.h>

int main(void)
{
	char c;

	while( (c = getchar()) != EOF ) {
		putchar(c);
		while( (c != EOF) && (c == ' ') ) c = getchar();
	}

	return 0;
}
