#include <iostream>
using namespace std;

int main() {
    int N, R_sum=0, B_sum=0;
    string s;
    cin >> N;
    cin >> s;
    for (int i = 0; i < N; ++i) {
        if (s[i] == 'R') R_sum++;
        else if (s[i] == 'B') B_sum++;
    }
    if (R_sum > B_sum) cout << "Yes" << endl
    else cout << "No" << endl;

    return 0;
}
