#include <bits/stdc++.h>
int main(void) {
  int N;
  scanf("%d", &N);
  char s[N];
  scanf("%s", s);
  int red = 0;
  int blue = 0;
  for (int i = 0; i < N; i++) {
    if (s[i] == 'R')
      red++;
    else
      blue++;
  }
  printf("%d %d", red, blue);
  if (red > blue)
    printf("Yes");
  else
    printf("No");
}
