n = gets.to_i
a = gets.chomp.split.map(&:to_i)
s = a.inject(:+) / 2
res = Array.new(n, 0)

n.times do |i|
  ((n + 1) / 2).times do |j|
    res[i] += a[(i + 2 * j) % n]
  end
end

puts res.map {|x| (x - s) * 2 }.join(" ")