#include<bits/stdc++.h>

using namespace std;

string s;
int cnt;

int main()
{
    int n;
    cin>>n;
    cin>>s;
    for(auto i:s)
    {
        if(i=='R') cnt++;
        else cnt--;
    }
    cout<<(cnt>0?"Yes":"No")<<'\n';
}