#include<bits/stdc++.h>
using namespace std;
int a,b,c,n,r;
string s;
int main(){
    cin>>n;
    cin>>s;
    for(int i=0;i<n;i++){
        if(s[i]=='R')r++;
        if(s[i]=='B')b++;
    }
    if(r>b)cout<<"Yes"<<endl;
    if(r<=b)cout<<"No"<<endl;
}

