a=list(map(int,input().split()))
for i in range(len(a)-2,-1,-1):            //逆序输出列表元素
    print(a[i],end=' ')