#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
    int N;
    string s;
    cin >> N;
    cin >> s;
    int r=0,b=0;
    for(auto c: s) {
        if(c=='R') r++;
        if(c=='B') b++;
    }
    cout << ((r>b)? "Yes" : "No");
}
