#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  int N;
    cin >> N;
  
  cin >> str;
  int countr = 0;
  int countb = 0;
  for (int i = 0; i < str.size(); i++) {
    if (str.at(i) == 'R') {
      countr++;
    }
    if (str.at(i) == 'B') {
      countb++;
    }
  }
 if (countr > countb) {
      cout << "Yes" << endl;
    }
  
 else{
  count << "No" << endl;
 }
  
}