#include<iostream>
#include<string>
using namespace std;
int main(){
    int N;
    cin >> N;
    string s;
    cin >> s;
    int red =count(s.begin(),s.end(),"R");
    int blue =count(s.begin(),s.end(),"B");
    if(red>blue) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}