using System; public class Program { public static void Main() { int key = 0; int rtn = 0; int temp = 0; while(temp < 10) { Console.WriteLine("{0:0000000000}", key); rtn = int.Parse(Console.ReadLine().Split()[0]); if (rtn == temp) { key += (int)Math.Pow(10, 9-rtn); } else { rtn = temp+1; } temp = rtn; } } }