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

int main(){
  int n;
  cin >> n;
  string a;
  cin >> a;
  int b=0;r=0;
  for (int z=0;z<n;z++){
    if (a[z] == 'B')b++:
    if (a[z] == 'R')r++;
  }
  if (r>b) cout << "Yes" << endl;
  else cout << "No" << endl;
}