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