function main(input) {
  const lines = input.split(/\n/);
  const N = Number(lines[0]);
  const rCount = lines[1].split("").filter(c => c === "R").length;
  console.log(rCount * 2 > N ? "Yes" : "No");
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
