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