#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int i, a = 0, b = 0;
  string str;
  cin >> str;
  for (i = 0; i < str.length(); i++) {
    if (str[i] == 'R')
      a += 1;
    else
      b += 1;
  }
  if (a > b)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
