using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; class Magatro { static void Main() { bool[] C = new bool[10]; int[] ans = new int[10]; while (true) { Write(ans); string[] s = Console.ReadLine().Split(' '); if (s[1] == "unlocked") { return; } int cnt = int.Parse(s[0]); int[] copy = ans.ToArray(); for (int i = 0; i < 10; i++) { if (C[i]) { continue; } int[] cp; cp = ans.ToArray(); cp[i]++; Write(cp); string[] ss = Console.ReadLine().Split(' '); if (ss[1] == "unlocked") { return; } int a = int.Parse(ss[0]); if (cnt > a) { C[i] = true; } else if (cnt < a) { C[i] = true; copy[i] = cp[i]; } else { copy[i] = cp[i]; } } ans = copy.ToArray(); } } static void Write(int[] ans) { for(int i = 0; i < 10; i++) { Console.Write(ans[i]); } Console.WriteLine(); } }