
def is_red_bigger_than_blue(color_list)
  red_count = color_list.count("R")
  blue_count = color_list.count - red_count 

  if red_count > blue_count 
    puts "Yes"
  else 
    puts "No"
  end 
end 

input = readlines.map &:chomp

color_list = input[1].split("")

is_red_bigger_than_blue(color_list)
