N = int(input()) num = tuple(map(int, input().split())) print(sum(num))