n = int(input()) L = list(map(int, input().split())) total = sum(L) print(total)