N = int(input()) A_S = [int(input()) for i in range(N)] print(sum(A_S))