s= input().split()

res=s[::-1]
print(' '.join(res))