#include <iostream>
#include <string>

using namespace std;
int main(void){
    int N;cin>>N;
    string s;cin>>s;
  int sum=0,B;
  for(int i=0;i<N;i++)
  {
    if(s[i]="R")
    {
      sum++;
    }
  }
  B=N-sum;
  if(sum>B)
  {
    cout<<"Yes"<<endl;
  }
  else
  {
    cout<<"No"<<endl;
  }
}
    
