using System; public class Program { static void Main() { int Key = 0; do{ Console.WriteLine("{0:000}",Key++); }while(Console.ReadLine() == "locked"); } }