N=int(input())

A=[int(i) for i in input().split()]

a=sum(A)//2#sumx

P=[0]*(N+1)

Q=[0]*(N+1)

for i in range(1,N+1):

    if i%2==1:

        P[i]+=P[i-1]+A[i-1]

        Q[i] += Q[i - 1]

    else:

        Q[i]+=Q[i-1]+A[i-1]

        P[i] += P[i - 1]

#print(a,P,Q)

ans=[]

for i in range(1,N+1):

    x=0

    if i%2==1:

        x+=P[N]-P[i-1]

        x+=Q[i]-Q[0]

    else:

        x += Q[N] - Q[i - 1]

        x += P[i] - P[0]

    print(2*(x-a),end=' ')

    #ans.append(2*(x-a))

#print(ans,end=' ')

N=int(input())

A=[int(i) for i in input().split()]

a=sum(A)//2#sumx

P=[0]*(N+1)

Q=[0]*(N+1)

for i in range(1,N+1):

    if i%2==1:

        P[i]+=P[i-1]+A[i-1]

    else:

        P[i] += P[i - 1]

T=[0]*N

T[0]=P[-1]-a

for i in range(1,N):

    T[i]=A[i-1]-T[i-1]

for t in T:

    print(2*t,end=' ')

N = int(input())
A = [int(i) for i in input().split()]
a = sum(A) // 2  # sumx
P = [0] * (N + 1)
Q = [0] * (N + 1)
for i in range(1, N + 1):
    if i % 2 == 1:
        P[i] += P[i - 1] + A[i - 1]
        Q[i] += Q[i - 1]
    else:
        Q[i] += Q[i - 1] + A[i - 1]
        P[i] += P[i - 1]
# print(a,P,Q)
ans = []
for i in range(1, N + 1):
    x = 0
    if i % 2 == 1:
        x += P[N] - P[i - 1]
        x += Q[i] - Q[0]
    else:
        x += Q[N] - Q[i - 1]
        x += P[i] - P[0]
    print(2 * (x - a), end=" ")
    # ans.append(2*(x-a))
# print(ans,end=' ')

N = int(input())
A = [int(i) for i in input().split()]
a = sum(A) // 2  # sumx
P = [0] * (N + 1)
Q = [0] * (N + 1)
for i in range(1, N + 1):
    if i % 2 == 1:
        P[i] += P[i - 1] + A[i - 1]
    else:
        P[i] += P[i - 1]
T = [0] * N
T[0] = P[-1] - a
for i in range(1, N):
    T[i] = A[i - 1] - T[i - 1]
for t in T:
    print(2 * t, end=" ")

-        Q[i] += Q[i - 1] -        Q[i] += Q[i - 1] + A[i - 1] -# print(a,P,Q) -ans = [] -for i in range(1, N + 1): -    x = 0 -    if i % 2 == 1: -        x += P[N] - P[i - 1] -        x += Q[i] - Q[0] -    else: -        x += Q[N] - Q[i - 1] -        x += P[i] - P[0] -    print(2 * (x - a), end=" ") -    # ans.append(2*(x-a)) -# print(ans,end=' ') +T = [0] * N +T[0] = P[-1] - a +for i in range(1, N): +    T[i] = A[i - 1] - T[i - 1] +for t in T: +    print(2 * t, end=" ")