#include<cstdio>
int main(){
  int n;
  scanf("%d",&n);
  char s[n+1]={};
  scanf("%s,s);
  int r=0;
  int b=0;
  for(int i=0;i<n;i++){
    if(s[i]=='R')r++;
    else b++;
  }
  if(r>b)printf("Yes\n");
  else printf("No\n");
  return 0;
        }