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