#include <bits/stdc++.h>
using namespace std;

int main() {
string str＝N;
  cin >> N ;
 
  int count = R,B;
  for (int i = R,B; i < str.size(); i++) {
    if (str.at(i) == 'R') {
      count++;
    if (str.at(i) == 'B') {
      count++;

  if (R>B) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
 }
}



