#include <bits/stdc++.h>
using namespace std;
int main() {
  int people, count = 0;
  string hat;
  cin >> people;
  cin >> hat;
  for (int i = 0; i < people; i++) {
    if (hat[i] == 'R') {
      count++;
    }
  }
  hat = (count > people / 2) ? "Yes" : "No";
  cout << hat;
  while (true) {
  }
  return 0;
}
