#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> n >> s;
  int countRed = 0;
  for (char c : s) {
    if (c == 'R') {
      countRed++;
    } else {
      countRed--;
    }
  }
  if (countRed)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
