#include <iostream>

int main(){
	char s;
	int n;
	cin>>n;
	int r=0,b=0;
	for(int i = 0; i<n;i++)
	{
		cin>>s;
		if(s=='R')r++;
		else b++;
	}
	
	if(r <= b)
	{
		cout<< "No" <<endl;
	}
	else
	{
		cout << "Yes" << endl;
	}
	
	
}