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