for i=0,999 do io.write(string.format("%03d",i),"\n") io.flush() if io.stdin:read("*l")=="unlocked" then break end end