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