function Main(input) {
  const length = input.split('\n')[0];
  const numbers = input.split('\n')[1].split('');
  var counter = 0;
  numbers.forEach ( function(color) {
    if (color === "R") {
      counter ++;
    }
  });
  if (counter > length / 2) {
    console.log("Yes");
  } else {
    console.log("No");
  }
}
Main(require("fs").readFileSync("/dev/stdin","utf8"));
