a = gets.to_i

s = gets.chomp.split("").map(&:to_s)

red = 0
blue = 0
a.times do |i|
  puts s[i]
  if s[i] == "R"
   red =+ i
  else
   blue =+ i
  end

  end
if red > blue
 puts "Yes"
else
 puts "No"
 end
