var lines = [];
var readline = require('readline');

var rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});

rl.on('line', function(input) {
    lines.push(input);
});

rl.on('close', function() {
    var inputStr = lines[1];
    var map = {};
    inputStr.forEach(function(inputChar) {
        if(!map[inputChar]){
            map[inputChar] = 1;
        } else {
            map[inputChar]++;
        }
    });

    var outputStr = map['R'] > map ['B'] ? 'Yes' : 'No';
    console.log(outputStr);
});
