#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  string s;
  int b = 0;
  int c = 0;
  int N = s.size();
  for (int i = 0; i < N; i++) {
    if (s.at(i) == 'R') {
      b++;
    } else {
      c++;
    }
  }
  if (b > c) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
