value = 0 for line in io.lines("input") do value = value + tonumber(line) end print(value)