a = gets.to_i
b = gets.chomp.split().map(&:to_s)

   a.each do |c|
	if b.split([R])
           counts_r += 1
        else
           counts_b += 1
        end
   end

    if counts_r > counts_b
       	puts "Yes"
    else
	puts "No"
    end