using System; using System.Collections.Generic; using System.Linq; namespace yukicodeX { public class ProgramX { static int lastNumber = 0; public static string GetNumber() { return string.Format( "{0:000}", lastNumber++ ); } public static void Solver(System.IO.TextReader reader) { Console.WriteLine( GetNumber() ); Console.Out.Flush(); while (reader.ReadLine() != "unlocked") { Console.WriteLine( GetNumber() ); Console.Out.Flush(); } } private static void Main() { Solver( Console.In ); } } }