function main(input) {
    const args = input.split('\n');

    var N = parseInt(args[0], 10);
    var s = args[1];

     var red = 0;
     var blue = 0;

     for(var i = 0; i < N; i++) {
        hat = s.charAt(i);
        if(hat === 'R') {
            red++;
        } else {
            blue++
        }
     }

     if(blue < red) {
         console.log('Yes');
     } else {
         console.log('No');
     }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
