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

int main(){
  int N;
  cin >> N;
  string s;
  cin >> s;
  int R = 0; int B = 0;
  for(int i=0; i<N; i++){
    if(s.Substr(i,1) == "R"){
      R++;
    }else{
      B++;
    }
  }
  if(R > B){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}
