"use strict";
function Main(input){
  let Red = 0;
  let Blue = 0;
  const input_line = input.split('\n');
  const inputS = input_line[1].split('');
  inputS.forEach((s) => {
    if (s === 'R') {
      Red++;
    }
    if (s === 'B') {
      Blue++;
    }
  });
  console.log(Red > Blue ? "Yes" : "No");
}

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