#include<iostream>
#include<string>
#include<cstdio>
using namespace std;
int main(){
  int n,i=0,cntr=0,cntb=0;
  string s;
  cin >> n >> s;
  for(;i<n;i++){
    if(s[i]=='B') cntb++;
    else cntr++;
  }
  puts(cntr>cntb?"Yes":"No");
}