using System; namespace yukicoder { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string[] b = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }; string[] c = new string[b.Length]; string[,] s1 = new string[a, 5]; string ans=""; for (int i = 0; i < a; i++)//入力 { string[] s = Console.ReadLine().Split(' '); for (int j = 0; j <= 4; j++) { s1[i, j] = s[j]; } } for (int x=0;x= 1) { for (int s = 0; s < c.Length; s++) { if (c[s] == "d") { ans += b[s]; } } Console.WriteLine(ans); } else { for (int s = 0; s < c.Length; s++) { if (c[s] == null) { ans += b[s]; } } Console.WriteLine(ans); } } } } } }