#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, countb = 0, ans = 0;
  cin >> n;
  char a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] == 'B') {
      countb++;
    }
  }
  if (n / 2 > countb) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}
