e-olymp
Competitions

Робота з рядками

Extra spaces

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 S (0 ≤ |S| ≤ 255). The string contains only letters and spaces.

Output

Print a string without extra spaces.

Time limit 1 second
Memory limit 128 MiB
Input example #1
Alexandr    Sergeevich   Pushkin
Output example #1
Alexandr Sergeevich Pushkin