input() A = list(map(int,input().split())) B = 0 for i in A: B += A print(B)