n = int(input())
vecinput = str(input())


def numerize(arr, rang):
    newarr = [0] * rang
    splited = arr.split(' ')
    for k in range(rang):
        newarr[k] = int(splited[k])
    return newarr


newvec = numerize(vecinput, n)
for i in range(n // 2):
    el1 = newvec[i]
    el2 = newvec[n - 1 - i]
    newvec[i] = el2
    newvec[n - 1 - i] = el1
print(*newvec)

9e320f1778f5bbf23f51d3ac0483f70c3c1350f5
<mask token>

<mask token>


def numerize(arr, rang):
    newarr = [0] * rang
    splited = arr.split(' ')
    for k in range(rang):
        newarr[k] = int(splited[k])
    return newarr


<mask token>

<mask token>


def numerize(arr, rang):
    newarr = [0] * rang
    splited = arr.split(' ')
    for k in range(rang):
        newarr[k] = int(splited[k])
    return newarr


<mask token>
for i in range(n // 2):
    el1 = newvec[i]
    el2 = newvec[n - 1 - i]
    newvec[i] = el2
    newvec[n - 1 - i] = el1
print(*newvec)

n = int(input())
vecinput = str(input())


def numerize(arr, rang):
    newarr = [0] * rang
    splited = arr.split(' ')
    for k in range(rang):
        newarr[k] = int(splited[k])
    return newarr


newvec = numerize(vecinput, n)
for i in range(n // 2):
    el1 = newvec[i]
    el2 = newvec[n - 1 - i]
    newvec[i] = el2
    newvec[n - 1 - i] = el1
print(*newvec)
