#include <iostream>
using namespace std;

int main() {
	
	int n, b=0, r=0;
	string s;
	
	cin >> n >> s;
	
	for (int i=0; i<n; i++){
		
		if (s.length(i)='B'){
			b=b+1;
		}
		
		else if (s.length(i)='R'){
			r=r+1;
		}
		
	}
	
	
	if (r>b){
		cout << "Yes";
	}
	
	else {
		cout << "No";
	}
	
	return 0;
}