N = int(input()) A = map(int,input().split()) total = 0 for i in range(2,N+1): total += A print(total)