puts printf("%03d\n", 0) for i in (1..999) do break if(gets.chomp! == "unlocked") puts printf("%03d\n", i) end