ns = list() n = int(input()) for i in range(n): ns.append(int(input())) print(sum(ns))