n = int(input()) data = input().split() ans = sum(map(int, data)) print(ans)