n = gets.to_i
as = gets.chomp.split.map(&:to_i)
sum = as.inject(:+)/2
ans = Array.new(n,0)
n.times do |i|
	t = (i + 1) % n
	cnt = 0
	while t != i
		cnt += as[t]
		t = (t + 2) % n
	end
	ans[i] += (sum - cnt) * 2
end

puts ans.join(" ")