N = int(input()) for _ in range( N ): x = int(input()) A.append(x) print(sum(A))