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