function Main(input){
  var data = input.split("\n")[1];
  var red=0;
  var blue=0;
  for(var i=0;i<data.length;i++){
  	if(data[i]=="B")blue++;
    if(data[i]=="R")red++;
  }
  console.log(red>blue?"Yes":"No");
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));