import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] player = {"oda", "yukiko"}; String s = sc.next(); int index = 0; if(s.equals("yukiko")) index = 1; int stone = 0; for(int i = 0; i < 8; i++) { String b = sc.next(); for(int j = 0; j < 8; j++) { if(!(b.charAt(j) == '.')) stone++; } } String ans = ""; if(stone % 2 == 0) { ans = player[index]; } else { ans = player[1 - index]; } System.out.println(ans); } }