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