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