#include <bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  cin>>s;
  int c=0,c2=0;
  for(int i=0;i<s.size();++i)
  {
    if(s[i]=='R') c++;
    else c2++;
  }
  if(c1>c2) cout<<"Yes";
  cout<<"No";
}