s = input()
words = s.split()
reversed_words = words[::-1]
reversed_sentence = " ".join(reversed_words)
print(reversed_sentence)
优雅写法(作者:dreadowl_2)
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
s = input().split()[::-1]
print(' '.join(s))
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
string = input()
# yuan
yuan = "aeiou"
big_yuan = "AEIOU"
for i in string:
# small
if i.islower():
if i in yuan:
string= string.replace(i, "v")
else:
string= string.replace(i, "c")
# big
if i.isupper():
if i in big_yuan:
string= string.replace(i, "V")
else:
string= string.replace(i, "C")
print(string)
import math
import sys
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
count = 0
n = int(input())
for i in range(n):
a = int(input())
if a > 0:
count -= a
else:
count += abs(a)
print(count)
import math
import sys
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
n_count = bin(n).count("1")
i=n
while True:
i+=1
if bin(i).count("1")==n_count:
print(i)
break
import math
import sys
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
water = input()
count = 0
for i in range(n):
print(" " * count + water)
count += 1
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
duration = input().split(":")
print(int(duration[0])*60 + int(duration[1]))