#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
const ll MOD = 1000000007;
const ll MOD9 = 998244353;
const int inf = 1e9 + 10;
const ll INF = 4e18;
const ll dy[8] = {1, 0, -1, 0, 1, 1, -1, -1};
const ll dx[8] = {0, -1, 0, 1, 1, -1, 1, -1};
using Graph = vector<vector<int>>;
const ll mod = 1000000007;
const int MAX_N = 1000;
double nCk(int n, int k) {
  double res = 1.0;
  for (int i = 0; i < n; i++) {
    res *= 0.5;
  }
  for (int i = 0; i < k; i++) {
    res *= (double)(n - i);
    res /= (double)(k - i);
  }
  return res;
}
int main() {
  string s;
  cin >> s;
  ll n = s.size();
  ll ca = 0;
  for (ll i = 0; i < n; i++) {
    if (s.at(i) == 'R') {
      ca++;
    }
  }
  if (ca > n - ca) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
