first = raw_input() second = "oda" if first == "yukiko" else "yukiko" stone = 64 for i in xrange(8): stone -= raw_input().count('.') if stone % 2 == 0: print first else: print second