#include <bits/stdc++.h>
using namespace std;
int main() {
  int Rcnt, Bcnt, N;
  string s;
  cin >> N >> s;
  for (int i = 0; i < N; ++i) {
    if (s[i] == 'R') ++Rcnt;
    if (s[i] == 'B') ++Bcnt;
  }
  if (Rcnt > Bcnt && Rcnt != Bcnt)
    cout << "Yes"
         << "\n";
  else
    cout << "No"
         << "\n";
  return 0;
}
