#include <bits/stdc++.h>
using namespace std;
int n;
string second;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> second;
  int r = 0, b = 0;
  for (int i = 0; i < (n); i++) {
    if (second[i] == 'R')
      r++;
    else
      b++;
  }
  if (r > b)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
