n = int(input()) nu = 0 for i in range(n): m = int(input()) nu += m