#include <bits/stdc++.h>
int main(void) {
  int N;
  int Red_count = 0;
  int Blue_count = 0;
  scanf("%d", &N);
  char s[N], str[1];
  scanf("%s", s);
  for (int i = 0; i < N; i++) {
    strncpy(str, s + i, 1);
    if (strcmp("R", str) == 0) {
      Red_count++;
    } else if (strcmp("B", str) == 0) {
      Blue_count++;
    }
  }
  if (Red_count > Blue_count) {
    printf("Yes");
  } else {
    printf("No");
  }
  return 0;
}
