N = gets.to_i
A = gets.split(' ').map(&:to_i)

allrain = A.inject(:+)

x = Array.new
N.times do |i|
	otherrain = 0
	(N/2).times do |j|
		otherrain += A[(i+1+j*2)%N]*2
	end
	x[i] = allrain - otherrain
end

N.times do |i|
	print x[i].to_s + " "
end