#include <bits/stdc++.h>
int main() {
  int N;
  char s[128];
  scanf("%d", &N);
  scanf(" %s", s);
  int len = strlen(s);
  int r = 0, b = 0;
  for (int i = 0; i < len; i++) {
    if (s[i] == 'R') {
      r++;
    } else {
      b++;
    }
  }
  if (r > b) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
