"use strict";
    
const main = arg => {
    arg = arg.split("\n");
    const N = parseInt(arg[0]);
    const S = arg[1].split("");
    
    const R = S.filter(n=>n==="R").length;
    const B = S.filter(n=>n==="B").length;

    console.log(R > B ? "Yes" : "No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));