#include <bits/stdc++.h>
int main(void) {
  int N;
  scanf("%d", &N);
  char color[N];
  int Rcnt = 0, Bcnt = 0;
  for (int i = 0; i < N; i++) {
    if (color[i] == 'R') {
      Rcnt++;
    } else if (color[i] == 'B') {
      Bcnt++;
    }
  }
  if (Rcnt > Bcnt) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}
