n = int(eval(input()))

a_list = list(map(int, input().split()))



s = 0

for a in a_list:

  s += a



hoge = 0

for i in range(n-1):

  if i%2 == 0:

    continue

  hoge += a_list[i]

  

x1 = s - (2 * hoge)



result = []

# result.append(x1)

print(x1)

xi = x1

for i in range(n-1):

    hoge = (a_list[i] * 2) - xi

    # result.append(hoge)

    print(hoge)

    xi = hoge

# print(result)

n = int(eval(input()))

a_list = list(map(int, input().split()))



s = 0

for a in a_list:

  s += a

  

x1 = s - (2 * sum(a_list[1::2]))



result = []

# result.append(x1)

print(x1)

xi = x1

for i in range(n-1):

    hoge = (a_list[i] * 2) - xi

    # result.append(hoge)

    print(hoge)

    xi = hoge

# print(result)

n = int(eval(input()))
a_list = list(map(int, input().split()))
s = 0
for a in a_list:
    s += a
hoge = 0
for i in range(n - 1):
    if i % 2 == 0:
        continue
    hoge += a_list[i]
x1 = s - (2 * hoge)
result = []
# result.append(x1)
print(x1)
xi = x1
for i in range(n - 1):
    hoge = (a_list[i] * 2) - xi
    # result.append(hoge)
    print(hoge)
    xi = hoge
# print(result)

n = int(eval(input()))
a_list = list(map(int, input().split()))
s = 0
for a in a_list:
    s += a
x1 = s - (2 * sum(a_list[1::2]))
result = []
# result.append(x1)
print(x1)
xi = x1
for i in range(n - 1):
    hoge = (a_list[i] * 2) - xi
    # result.append(hoge)
    print(hoge)
    xi = hoge
# print(result)

-hoge = 0 -for i in range(n - 1): -    if i % 2 == 0: -        continue -    hoge += a_list[i] -x1 = s - (2 * hoge) +x1 = s - (2 * sum(a_list[1::2]))