num = gets.chomp.to_i
str = gets.chomp
 
data = {
  "R" => 0,
  "B" => 0,
}
str.each_char do |c|
  if c == "R"
    data["R"] += 1
  else
    data["B"] += 1
  end
end
puts data["R"] > data["B"] ? 'Yes' : 'No'
