#include <iostream>
using namespace std;

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