N = int(input()) A = map(int,input().split()) S = sum(A) print(S)