#include<stdio.h>
#include<stdlib.h>
int main() {
	int i, j, k, f = 0, n, t, m,a,b,c;
	char x;
	a=0;
	b=0;
	scanf("%d", &n);
	for(i=0;i<n;i++){
	scanf("%c",&x);
		if(x=='R'){
		a = a+1;
		}else{
		b = b+1;
		}
	}
	if(a>b){
	printf("Yes");
	}else{
	printf("No")
	}

return 0;
}