n = io.read("*n") total = 0 for i=1,n do total = total + io.read("*n") end print(total)