m = [] N = int(input()) for a in range(N) :m.append(int(input())) print(sum(m))