#include<bits/stdc++.h>
#include<string>
using namespace std;

int main(){
  int n,i,countb=0,countr=0;ans=0;
  cin >> n;
  char a[n];
  for(i=0;i<n;i++){
    cin >> a[i];
    if(a[i] == 'B'){countb++;}else{countr++;}
  }
  if(countr > countb){cout << "Yes";}else{cout << "No";}
  return 0;
}
