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