s=gets.chomp b=(1..8).map{gets}*"" puts (b.count(?b)>b.count(?w))?%w(oda yukiko)-[s]:s