#include <iostream>

using namespace std;
int main()
{
    int n;
    int a=0;
    int b=0;
    string str;
    cin >> n;
    cin >> str;
    for (int i=0; i<n; i++){
        if (str[i] == "R") a++;
        else b++;
    }
    if(a > b) cout << "Yes" << endl;
    else cout << "No" << endl;
}
