function main(arg) {
	arg = arg.split("\n")
	var N = Number(arg[0])
	var s = arg[1]
	var nr = s.split("R").length - 1
	var nb = s.split("B").length - 1
	if (nr > nb) {
		console.log("Yes")
	} else {
		console.log("No")
	}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));