players = ["yukiko", "oda"] players.reverse! if gets.chomp == "oda" n = 8.times.map { gets.chomp }.join.scan(/[wb]/).size % 2 puts players[n]