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