#include <bits/stdc++.h>
using namespace std;
int main() {
  int number;
  cin >> number;
  char info[number];
  cin >> info;
  int i = 0;
  int red = 0;
  while (info[i] != '\0') {
    if (info[i] = 'R') {
      red++;
    }
    i++;
  }
  if (red == number / 2) {
    cout << "No" << endl;
  } else if (red > number / 2) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
