function Main(input) {
  var red=0;
  for(var i = 0; i < input.length; i++){
    red += (input[i] == "R" ? 1:-1);
  }
  console.log(red > 0 ? "Yes":"No");
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
