#include <iostream>
#include <string>
using namespace std;

int main(){
	int N;
	cin>>N;
	string s;
	cin>>s;
	int cnt=0,x=0;
	for(int i=0;i<N;i++){
		if(s[i]=='R') cnt++;
		else x++;
	}
	if(cnt>x) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
} 