#include<bits/stdc++.h>
using namespace std;
int main()
{
	int ans1=0,ans2=0,n;
	string s;
	cin>>n>>s;
	for(int i=0;i<n;i++)
	 if(s[i]=='R')ans1++;
	 else ans2++;
	if(ans1>ans2)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}