#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  string s1;
  cin >> s1;
  long long bc, rc;
  bc = rc = 0;
  for (long long i = 0; i < n; i++) {
    if (s1[i] == 'R')
      rc++;
    else
      bc++;
  }
  cout << rc << " " << bc << "\n";
  if (rc > bc)
    cout << "Yes\n";
  else
    cout << "No\n";
}
