function isTriangle(input){
  let R=0,B=0;
  const inputN = input;  // 1<=inputN<=100
  N = parseInt(inputN.replace(/\r?\n/g,''));
  const inputS = input;
  inputS.forEach((s)=>{
    if (s==='R'){
      R++;
    }else{
      B++;
    }
  }
  if (R > B){
    console.log("Yes");
  } else {
    console.log("No");
  }
}

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