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