#include<stdio.h>

int main(){
  int n,i,count_r=0,count_b=0;
  scanf("%d",&n);
  char s[n],b;
  scanf("%s",s);
//printf("%c\n",str[2]);
for(i=0;i<n;i++){
  b=s[i];
  if(b=="R"){
   count_r++;
 }
 else if(b=="B"){
   count_b++;
 }
 else{}
}
if(count_r>count_b) {
  printf("Yes\n");
}
else{
  printf("No\n");
}
return 0;
}