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

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