arr = list(map(lambda x: int(x), input().split())) print(*(arr[0:2] + arr[-3:1:-1] + arr[-2:]))