#include <bits/stdc++.h>
using namespace std;
int n, h[100005];
long long dp[100005];
using namespace std;
using Int = long long;
template <typename T1, typename T2>
inline void chmin(T1 &a, T2 b) {
  if (a > b) a = b;
}
template <typename T1, typename T2>
inline void chmax(T1 &a, T2 b) {
  if (a < b) a = b;
}
int main() {
  int N, M, K;
  queue<int> que;
  string s;
  cin >> s;
  int cnt;
  int cnt1;
  cnt = 0;
  cnt1 = 0;
  for (int i = 0; i < (int)s.size(); i++) {
    if (s[i] == 'R') {
      cnt++;
    } else {
      cnt1++;
    }
  }
  if (cnt > cnt1) {
    printf("Yes");
  } else {
    printf("No");
  }
  return 0;
}
