#include<bits/stdc++.h>
#define N 5000005

using namespace std;

int n,b[N];char s[N];

inline int gt(char ch){if(ch=='R')return 1;return 0;}

int main(){
    scanf("%d%s",&n,s+1);
    for (int i=1;i<=n;i++) b[gt(s[i])]++;
    if (a[1]>a[0]) puts("Yes");
    else puts("No");
    return 0;
}