function main(input) {
  const RBs = input.trim().split(/\n/)[1];
  console.log(RBs.split("R").length > RBs.split("B").length ? "Yes" : "No");
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
