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