N = gets.to_i
a = gets.split.map(&:to_i)
sum = a.inject(:+)
cs1,cs2 = [0],[0]
(N/2).times do |i|
  cs1[i+1] = cs1[i] + a[i*2]
  cs2[i+1] = cs2[i] + a[i*2+1]
end
cs1[N/2+1] = cs1[N/2]+a[N-1]
#p cs1
#p cs2
ans = []
N.times do |i|
  if i % 2 == 0
    t = cs1[N/2+1] - cs1[i/2] + cs2[i/2]
    ans << t*2-sum
  else
    t = cs2[N/2] - cs2[i/2] + cs1[i/2+1]
    ans << t*2-sum
  end
end

puts ans.join(" ")
