s = input() l = ['oda','yukiko'] def count_stone(c): i = 0 for v in c: if v != '.': i += 1 return i j = 0 for v in range(1,9): c = input() j += count_stone(c) if j % 2 == 0: print(s) else: l.remove(s) print(l[0])