Input 1: 'I love Python'
Output 2: 'Python love I'
# Read the input
s = input()
# First split the string at white spaces and reverse the returned list using
# the indexing as shown below. Then finally join the words with a white space
# and print the final output.
print(" ".join(str.split(s, " ")[-1::-1]))