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

int main() {
    int n;
    string s;
    cin >> n >> s;
    cout << (count(s.begin(), s.end(), 'R') > 
        count(s.begin(), s.end(), 'B') ? "Yes\n" : "No\n");
    return 0;
}