#include<cstdio>
const int N=105;
int n;char s[N];
int main() {
    scanf("%d",&n);
    scanf("%s",s);
    int l=0,r=0;
    for(int i=0;i<n;i++) s[i]=='R'?++l:++r;
    return !printf("%s",l>r?"Yes":"No");
}
