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