players = ["oda", "yukiko"] if gets.chomp == "yukiko" players.reverse! end board = Array.new(8) { gets }.join turn = board.scan(/[wb]/).length % 2 puts players[turn]