A string S is passed as the input. The program must reverse the order of the words in the string and print them as the output.

Input Format:
The first line will contain S.

Output Format:
The first line will contain the words in the string S in the reverse order.

Boundary Conditions:
Length of S is from 5 to 100.

Example Input/Output 1:
Input:
Today is Friday

Output:
Friday is Today

Example Input/Output 2:
Input:
five six ten eleven

Output:
eleven ten six five

s=input().split();s=s[::-1]
print(*s)
Amazing!
0
Love
2
Very helpful
0
Claps!
0

You may also like

More in:Python