#include <bits/stdc++.h>
using namespace std;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  long long cnt = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == 'R') cnt++;
  }
  if (cnt > s.size() / 2)
    cout << "Yes"
         << "\n";
  else
    cout << "No"
         << "\n";
  return 0;
}
