package sample; import java.util.Scanner; public class Sample2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String blackPlayer = sc.next(); int discsCount = 0; for (int i = 0; i < 8; i++) { String row = sc.next(); for (int j = 0; j < 8; j++) { if (row.charAt(j) != '.') { discsCount++; } } } if (blackPlayer.equals("oda")) { if (discsCount % 2 == 0) { System.out.println("oda"); } else { System.out.println("yukiko"); } } else if (blackPlayer.equals("yukiko")) { if (discsCount % 2 == 0) { System.out.println("yukiko"); } else { System.out.println("oda"); } } } }