#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int red = 0, blue = 0;
  string S;
  cin >> S;
  for (int i = 0; i < N; i++) {
    if (S[i] == 'R') {
      red += 1;
    } else {
      blue += 1;
    };
  };
  if (red > blue) {
    cout << "Yes";
  } else {
    cout << "No";
  };
  return 0;
}
