using System; public class Program { // 文字の出現回数をカウントする public static int CountChar (string s, char c) { string replStr = s.Replace(c.ToString(), ""); return s.Length - replStr.Length; } public static void Main () { const int LENGTH = 8; const char BLACK = 'b'; const char WHITE = 'w'; const string ODA = "oda"; const string YUKIKO = "yukiko"; // 先手後手を決める string firstPlayer = Console.ReadLine(); string secondPlayer; if (firstPlayer == ODA) { secondPlayer = YUKIKO; } else { secondPlayer = ODA; } // 盤面に置いてある石の数を数える int count = 0; for (int i = 0; i < LENGTH; i++) { string s = Console.ReadLine(); count += CountChar(s, BLACK); count += CountChar(s, WHITE); } if (count % 2 == 0) { Console.WriteLine(firstPlayer); } else { Console.WriteLine(secondPlayer); } } }