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