Skip to content
UPEEC

Reverse the Words

Easy#strings· solved by 0 · time limit 2.0 s

Print the words of the line in reverse order, separated by single spaces.

Input

One line of text.

Output

The words in reverse order.

Constraints

1 to 10410^4 characters, at least one word.

Sample 1

Input

the sky is blue

Output

blue is sky the

Sample 2

Input

  hello   world  

Output

world hello

Sign in or join free to run and submit your solution.