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

int main(){
    int N;
    string S;
    cin >> N >> S;
    int r = count(S.begin(), S.end(), 'R');
    int b = count(S.begin(), S.end(), 'B');
    cout << (r>b ? "Yes" : "No") << endl;
    return 0;
}
