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