#include <iostream>
#include <string>
using namespace std;
string s;
int main(){
	int i,n,b = 0,r = 0;
	cin >> n >> s;
	for(i=0;i<n;i++){
		if(s[i]=='B') b++;
		else r++;
	}
	if(r>b) cout << "Yes" << endl;
	else cout << "No" << endl;
}