#import <stdio.h>
#define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++)

int main() {
    int n;
    scanf("%d ", &n);
    int s[2] = {0};
    rep(i,n) s[getchar() == 'R' ? 1 : 0]++;
    puts(s[1] > s[0] ? "Yes" : "No");
}
