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