#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N, bcount;
  string s;
  bool flag = false;
  cin >> N;
  cin >> s;
  bcount = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'B') {
      bcount++;
    }
  }
  flag = N / 2 > bcount ? true : false;
  if (flag) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
