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

int main(){

  int N;
  cin >> N;
  string S;
  cin >> S;
  int b = 0,r = 0;
  for(int i = 0;i < S.size();i++){

    if(S[i] == 'R')r++;
    else b++

    
  }
  if(r > b) cout << "Yes" << endl;
  else cout << "No" << endl;
}