Extra spaces
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given a string. Write a program that will remove that line from all the extra spaces. A space will be assumed odd, if:
He is at the beginning of the line, until the first word;
it is in the end of the line after the last word;
more spaces are located between two words (in other words, if the words are separated by more than one space, then all spaces except one - extra).
Input
Given a string . The string contains only letters and spaces.
Output
Print a string without extra spaces.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 49%