let N = Int(readLine()!)!
let A = readLine()!.characters.split(" ").map{Int(String($0))!}
//let sum = A.reduce(0){$0+$1}
let ans = (0..<N).map{A[($0+N-1)%N] + A[$0] - A[($0+1)%N]}
ans.forEach{print($0, terminator: " ")}
print()