#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  if (count(s.begin(), s.end(), 'R' > s.size() / 2)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
