#include <bits/stdc++.h>
using namespace std;
int main() {
  char a;
  long long n, r, b;
  r = b = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%c", &a);
    if (a == 'R')
      r++;
    else if (a == 'B')
      b++;
  }
  if (r > b)
    printf("Yes");
  else if (r <= b)
    printf("No");
  return 0;
}
