#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("tune=native")
#pragma GCC target("avx")
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using namespace std;
int main() {
  int n;
  string s;
  cin >> n >> s;
  int r;
  int b;
  for (unsigned long long i = 0, i_len = (n); i < i_len; i++) {
    if (s[i] == 'R')
      r++;
    else
      b++;
  }
  cout << (r > b ? "Yes" : "No") << endl;
}
