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