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