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

int main(){
    int n;
    string s;
    cin >> n;
    cin >> s;
    int cntR = 0;
    int cntB = 0;
    for(int i = 0; i < s.length(); i++){
        if(s[i] == 'R') cntR++;
        else(s[i] == 'B') cntB++;
    }
    if(cntR > cntB) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}