# Input consists of a sequence of integers. # The first in the sequence denotes how many integers to follows. # Write a program that reads in this sequence of numbers # and prints out the sum of the integers that follows the first. n = int(input()) i = 1 acc = 0 while i <= n: a_i = int(input()) acc += a_i i += 1 print(acc)