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