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