import sys,copy input=lambda:sys.stdin.readline().rstrip() players=["oda","yukiko"] first=input() cur=0 for i in range(8): cur+=input().count('.') print(players[(players.index(first)+cur)%2])