#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e+18 + 1;
const long long MOD = 1000000007LL;
string abc = "abcdefghijklmnopqrstuvwxyz";
string ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main() {
  long long n;
  cin >> n;
  string s;
  long long r = 0, b = 0;
  for (long long i = 0; i < (long long)(n); i++) {
    if (s[i] == 'R')
      r++;
    else
      b++;
  }
  if (r > b)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
