n = gets.to_i
a = gets.chomp.split(" ").map(&:to_i)

sum = a.inject(:+)
kisu = 0
gusu = 0
for i in 0..n-1
  kisu += a[i%n] if i%2 == 0
  kisu -= a[i%n] if i%2 != 0
  gusu += a[(i+1)%n] if i%2 == 0
  gusu -= a[(i+1)%n] if i%2 != 0
end
ans = [kisu,gusu]
for i in 0..n-1
  if i % 2 == 0
    puts ans[0]
    ans[0] = ans[0] - 2*a[i%n] + 2 * a[(1+i)%n]
  else
    puts ans[1]
    ans[1] = ans[1] - 2*a[i%n] + 2 * a[(1+i)%n]
  end
end