#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<char> cap(N);
  for (int i = 0; i < N; i++) {
    cin >> cap.at(i);
  }
  int red = 0, blue = 0;
  for (int i = 0; i < N; i++) {
    if (cap.at(i) == 'R') {
      red += 1;
    } else {
      blue += 1;
    }
  }
  if (red > blue) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
