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