#include <bits/stdc++.h>
int main(void) {
  int n = 0, countB = 0, countR = 0;
  char s;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%c", &s);
    if (s == 'B') {
      countB++;
    } else {
      countR++;
    }
  }
  if (countR > countB) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}
