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