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