from sys import stdin from itertools import product def main(): S = input() B = stdin.read().splitlines() if S == 'oda': players = ['oda', 'yukiko'] else: players = ['yukiko', 'oda'] cnt = 64 - ''.join(B).count('.') if cnt % 2: for i, j in product(range(5), repeat=2): if all((B[i][j] == '.', B[i][j+1] == 'b', B[i][j+2] == 'w')) or \ all((B[i][j] == '.', B[i+1][j] == 'b', B[i+2][j] == 'w')): print(players[1]) break else: print(players[0]) else: for i, j in product(range(5), repeat=2): if all((B[i][j] == '.', B[i][j+1] == 'w', B[i][j+2] == 'b')) or \ all((B[i][j] == '.', B[i+1][j] == 'w', B[i+2][j] == 'b')): print(players[0]) break else: print(players[1]) main()