open System let rec No304 (n:int) = if n = 0 then printfn "%03d" n No304 (n+1) elif Console.ReadLine() = "locked" then printfn "%03d" n No304 (n+1) else () No304 0