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