N = int(input()) A = [int(input()) for _ in range(N)] sum = 0 for i in range(N): sum += A[i] print(sum)