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