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