#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int r;
  int flag = 0;
  r = 0;
  string s;
  cin >> N >> s;
  int i = 0;
  while (i < N) {
    if (s[i] == 'R') r++;
    i++;
    if (r > (N / 2)) {
      flag = 1;
    }
  }
  if (flag == 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
