from sys import stdin n = int(stdin.readline()) total = sum(map(int, stdin.readline().split())) print(total)