#include <iostream>
using namespace std;
int main(){
    int a,r=0,b=0;
    cin>>a;
    string bun;
    cin>>bun;
    for(int i=0;i<a;i++){
        if(bun[i]=="R")r++;
        else b++;
    }
    if(r>b)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}
