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

total = a.inject(:+)

result = Array.new(n, total)

for i in 0..(n-1)
  for j in 1..(n/2)
    index = (i + (j * 2)) - 1
    if index >= n then
      index -= n
    end
    result[i] -= a[index] * 2
  end
end

puts result