#include <bits/stdc++.h>
using namespace std;
char s[111];
int main() {
  scanf("%s", s);
  int len = strlen(s);
  int R = 0, B = 0;
  for (int i = 0; i < len; ++i) {
    if (s[i] == 'R')
      R += 1;
    else
      B += 1;
  }
  puts(R > B ? "Yes" : "No");
  return 0;
}
