N = int(input()) A = [] for _ in range(N): A.append(int(input())) print(sum(A))