N = int(eval(input()))

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



odd_sum = [0]

even_sum = [0]



for i in range(N):

    if i % 2 == 0:

        odd_sum.append(odd_sum[-1] + a_list[i])

        even_sum.append(even_sum[-1] - a_list[i])

    else:

        odd_sum.append(odd_sum[-1] - a_list[i])

        even_sum.append(even_sum[-1] + a_list[i])



ans = []

for i in range(N):

    a = a_list[i]



    if i % 2 == 0:

        a += (odd_sum[-1] - odd_sum[i + 1])

        a += even_sum[i]

    else:

        a += (even_sum[-1] - even_sum[i + 1])

        a += odd_sum[i]

    print(a)

N = int(eval(input()))

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



ans = []

for i in range(N):

    a = a_list[i]

    if i == 0:

        for j in range(1, N):

            if j % 2 == 0:

                a += a_list[j]

            else:

                a -= a_list[j]

        ans.append(a)

    else:

        a = a_list[i - 1]

        ans.append(2 * (a - ans[-1] // 2))



for a in ans:

    print(a)

N = int(eval(input()))
a_list = list(map(int, input().split()))
odd_sum = [0]
even_sum = [0]
for i in range(N):
    if i % 2 == 0:
        odd_sum.append(odd_sum[-1] + a_list[i])
        even_sum.append(even_sum[-1] - a_list[i])
    else:
        odd_sum.append(odd_sum[-1] - a_list[i])
        even_sum.append(even_sum[-1] + a_list[i])
ans = []
for i in range(N):
    a = a_list[i]
    if i % 2 == 0:
        a += odd_sum[-1] - odd_sum[i + 1]
        a += even_sum[i]
    else:
        a += even_sum[-1] - even_sum[i + 1]
        a += odd_sum[i]
    print(a)

N = int(eval(input()))
a_list = list(map(int, input().split()))
ans = []
for i in range(N):
    a = a_list[i]
    if i == 0:
        for j in range(1, N):
            if j % 2 == 0:
                a += a_list[j]
            else:
                a -= a_list[j]
        ans.append(a)
    else:
        a = a_list[i - 1]
        ans.append(2 * (a - ans[-1] // 2))
for a in ans:
    print(a)

-odd_sum = [0] -even_sum = [0] -for i in range(N): -    if i % 2 == 0: -        odd_sum.append(odd_sum[-1] + a_list[i]) -        even_sum.append(even_sum[-1] - a_list[i]) -    else: -        odd_sum.append(odd_sum[-1] - a_list[i]) -        even_sum.append(even_sum[-1] + a_list[i]) -    if i % 2 == 0: -        a += odd_sum[-1] - odd_sum[i + 1] -        a += even_sum[i] +    if i == 0: +        for j in range(1, N): +            if j % 2 == 0: +                a += a_list[j] +            else: +                a -= a_list[j] +        ans.append(a) -        a += even_sum[-1] - even_sum[i + 1] -        a += odd_sum[i] +        a = a_list[i - 1] +        ans.append(2 * (a - ans[-1] // 2)) +for a in ans: