#include<iostream>
#include<string>
using namespace std;
int main(){
	int a;
	string b;
	cin>>a>>b;
	int c=0,d=0;
	for(int i=0;i<a;i++){
		if(b[i]=='R')
			c++;
		else
			d++;
	}
	if(c>d)
		cout<<"Yes"<<endl;
	else
		cout<<"No"<<endl;
	return 0;
}