#include <bits/stdc++.h>
int main(void) {
  int N, R = 0, c, B;
  char s[101];
  scanf("%d", &N);
  scanf("%s", &s);
  for (c = 0; c < N; c++) {
    if (s[c] == 'R') {
      R += 1;
    }
  }
  if (R > N - R)
    printf("Yes\n");
  else
    printf("No\n");
  printf("%d %d", R, N);
  return 0;
}
