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