Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank.