#include <bits/stdc++.h>
const int MAX = 505;
using namespace std;
int main() {
  int N;
  cin >> N;
  int r = 0, b = 0;
  while (N--) {
    char c;
    cin >> c;
    r += c == 'R';
    b += c != 'R';
  }
  cout << ((r > b) ? "YES" : "NO");
  return 0;
}
