N = int(input()) A = [int(input()) for _ in range(N)] b = sum(A) print(b)