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

int main(){
  int N; string S;
  cin>>N>>S;
  int b=0,r=0;
  for(int i=0;i<N;i++){
    if(S[i]=='B')
      b++;
    else
      r++;
  }
  if(r>b)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}
