a = int(input())
arr = []
inp = list(map(int, input().split()))
for i in inp:
    arr.append(i)
for i in range(a):
    print(arr[i] + arr[-1 - i], '', end='')

b1038753e24d21c81b843eed87075e34d2fdf6be
<mask token>

<mask token>
for i in inp:
    arr.append(i)
for i in range(a):
    print(arr[i] + arr[-1 - i], '', end='')

a = int(input())
arr = []
inp = list(map(int, input().split()))
for i in inp:
    arr.append(i)
for i in range(a):
    print(arr[i] + arr[-1 - i], '', end='')
