#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  ll n;
  cin >> n;
  string s;
  cin >> s;
  ll r = 0;
  ll b = 0;
  for (int i = 0; i < (n); ++i) {
    if (s.at(i) = 'R')
      r++;
    else
      b++;
  }
  if (r > b)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
