import sys unput=sys.stdin.readline N = int(input()) A = list(map(int, input().split())) print(sum(A))