#include <bits/stdc++.h>
int main() {
  int n, i;
  char s[100];
  int r = 0, b = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    s[i] = getchar();
    if (s[i] == 'R') r++;
    if (s[i] == 'B') b++;
  }
  if (r > b)
    puts("Yes");
  else
    puts("No");
  return (0);
}
