#include <stdio.h>
int main(void){
    int i=0,k=0;;
    scanf("%d",i);
    char bun[i];
    scanf("%s",bun);
    for(int j=0;j<i;j++){
        if(bun[i]=="R")k++;
        else k--;
    }
    if(k>0)printf("Yes");
    else printf("No");
    return 0;
}
