c = 0 ns = list() n = int(input()) while c < n: ns.append(int(input())) c += 1 print(sum(ns))