#include<bits/stdc++.h>

using namespace std;

int main()
{
    string s;
    int n,l,i=-1,c=0;
    cin>>n>>s;
    while(s[++i]!='\0'){

        if (s[i]=='R')++c;

    }
    if (c>(n-c))cout<<"Yes"<<endl;
    else cout<<"No"<<endl;

    return 0;
}
