-- $Id: sumcol.lua,v 1.2 2000/10/07 08:41:44 doug Exp $
-- http://www.bagley.org/~doug/shootout/

sum = 0
line = read()
while line ~= nil do
    sum = sum + line
    line = read()
end
write(sum, "\n")