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