function main(i) {
  var n = Number(i.split('\n')[0]);
  var red = i.split('\n')[1].split('R').length - 1;
  if (red > n/2) {
    console.log('Yes');
  } else {
    console.log('No');
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));