#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<char> s(n);
  for (int i = 0; i < n; i++) cin >> s.at(i);
  int red, blue;
  for (int i = 0; i < n; i++) {
    if (s.at(i) == 'R')
      red++;
    else if (s.at(i) == 'B')
      blue++;
  }
  if (red > blue)
    cout << "Yes";
  else
    cout << "No";
}
