player=['oda','yukiko'] s=input() b=[list(input()) for _ in range(8)] cnt=0 for i in range(8): for j in range(8): if b[i][j]!='.': cnt+=1 if cnt%2==0: print(s) else: for i in player: if i!=s: print(i)