n = gets.to_i
a = gets.split.map(&:to_i)
m = Array.new(n, 0)

minus = Array.new(n/2)
for i in 0..(n/2-1)
  minus[i] = 2 * i + 1
end
for i in 0..(n-1)
  if i % 2 == 0
    m[0] += a[i]
  else
    m[0] -= a[i]
  end
end

for i in 1..(n-1)
  for j in 0..(n/2-1)
    minus[j] += 1
    if minus[j] >= n
      minus[j] = 0
    end
  end
  
  m[i] = m[i-1]
  for j in 0..(n/2-1)
    m[i] -= 2 * a[minus[j]]
    if minus[j] != 0
      m[i] += 2 * a[minus[j]-1]
    else
      m[i] += 2 * a[n-1]
    end
  end
end
puts m.join(" ")