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