#include <bits/stdc++.h>
using namespace std;
long long dx[4] = {1, 0, -1, 0};
long long dy[4] = {0, 1, 0, -1};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long a = 0, b = 0, c, d, m, n, maxi = 0, f = 0, mini = LLONG_MAX,
            sum = 0;
  string str;
  cin >> str;
  for (long long i = (long long)(0); i < (long long)(str.length()); i++) {
    if (str[i] == 'R')
      a++;
    else
      b++;
  }
  if (a > b)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
