#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string x;
  cin >> x;
  int a = 0;
  for (int i = 0; i < n; i++) {
    if (x.at(i) == 'B') {
      a++;
    }
  }
  if (n / 2 > a) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
