#include <bits/stdc++.h>
int main() {
  int n, i, x, t;
  char a[10000];
  while (~scanf("%d", &n)) {
    for (i = 0; i < n; i++) {
      scanf("%c", &a[i]);
    }
    t = 0;
    x = 0;
    for (i = 0; i < n; i++) {
      if (a[i] == 'R') {
        t++;
      } else if (a[i] == 'B') {
        x++;
      }
    }
    if (t > x) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
}
