#include <bits/stdc++.h>
using namespace std;
long long n, m, i, j, k, h, t, maxn, ttt, t1, t2, sig = 0, l, d;
int main() {
  cin >> n;
  string s;
  n = 0, m = 0;
  for (i = 0; i < s.length(); i++) {
    if (s[i] == 'R') n++;
    if (s[i] == 'B') m++;
  }
  if (n > m)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
