#include <bits/stdc++.h>
using namespace std;
int main() {
  int in;
  cin >> in;
  string s;
  cin >> s;
  int c = 0;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == 'R') c++;
  }
  if (c > s.size() - c) cout << "Yes";
  cout << "No";
}
