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