#include <bits/stdc++.h>
using namespace std;
inline long long read() {
  long long f = 1, x = 0;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
int stack[20];
inline void write(int x) {
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  if (!x) {
    putchar('0');
    return;
  }
  int top = 0;
  while (x) stack[++top] = x % 10, x /= 10;
  while (top) putchar(stack[top--] + '0');
}
inline void pr1(int x) {
  write(x);
  putchar(' ');
}
inline void pr2(int x) {
  write(x);
  putchar('\n');
}
const int MAXN = 105;
char ch[MAXN];
int r, b;
int main() {
  scanf("%s", ch + 1);
  int len = strlen(ch + 1);
  for (int i = 1; i <= len; i++) {
    if (ch[i] == 'R')
      r++;
    else
      b++;
  }
  if (r > b)
    puts("Yes");
  else
    puts("No");
}
