#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int rcnt = 0, bcnt = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'R')
      rcnt++;
    else
      bcnt++;
  }
  cout << (rcnt > bcnt ? "Yes\n" : "No\n") << endl;
  return 0;
}
