Given a single line of text made up of words separated by one or more spaces (a word itself never contains a space), print the words in reverse order, separated by exactly one space, with no leading or trailing spaces. The line may have leading, trailing, or multiple internal spaces, and may contain no words at all.
Input format
Line 1: the text (may be empty or contain only spaces).
Output format
The words in reverse order, single-space separated. If there are no words, print an empty line.
Constraints
- 0 ≤ length of the line ≤ 300
- Each word consists of printable non-space ASCII characters