#include<iostream>
#include<algorithm>

using namespace std;

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



}

