function Main(input) {
	input = input.split("\n");
	const n = parseInt(input[0]);
	arr = input[1].split("");

	var b = 0;
	var r = 0;

	for(i=0;i<n;i++) {
		if ( arr[i]=="B" ) {
			b++;
		} else {
			r++;
		}
	}
	//比較
	if (r>b) {
		console.log("Yes");
	} else {
		console.log("No");
	}
	
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));