function main(input) {
  var lines = input.split("\n");
  var N = Number(lines[0]);
  var bcnt = lines[1].replace(/R/g,"").length;
  var rcnt = lines[1].replace(/B/g,"").length;
  console.log(rcnt>bcnt?"Yes":"No");


}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
