N=int(input()) A=0 sumA=0 for i in range(N): A=int(input()) sumA+=A print(sumA)