while(1) do a=io.read() if a==nil then return end s=1 for w in string.gmatch(a, "%d+") do s=s*w end print(s) end