#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<long long>;
using vvl = vector<vl>;
using P = pair<long long, long long>;
using PP = pair<long long, P>;
using vp = vector<P>;
using vpp = vector<PP>;
using vs = vector<string>;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <typename A, typename B>
istream &operator>>(istream &is, pair<A, B> &p) {
  is >> p.first >> p.second;
  return is;
}
template <typename A, typename B>
ostream &operator<<(ostream &os, const pair<A, B> &p) {
  os << "(" << p.first << "," << p.second << ")";
  return os;
}
template <typename T>
istream &operator>>(istream &is, vector<T> &t) {
  for (int i = 0; i < (t.size()); i++) is >> t[i];
  return is;
}
template <typename T>
ostream &operator<<(ostream &os, const vector<T> &t) {
  os << "{";
  for (int i = 0; i < (t.size()); i++) {
    if (i) os << ",";
    os << t[i];
  }
  cout << "}";
  return os;
}
const long long MOD = 1000000007LL;
const int INF = 1 << 30;
const long long LINF = 1LL << 60;
int main() {
  string st;
  cin >> st;
  int a = 0, b = 0;
  for (int i = 0; i < (st.size()); i++) {
    if (st[i] == 'R') {
      a++;
    } else {
      b++;
    }
  }
  if (a > b) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
