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