n=int(input()) A=[] for i in range(1,n+1): A.append(input()) goukei=0 for k in A: goukei+=int(k) print(goukei)