N=input() A=[int(input()) for i in range(N)] print(sum(A))