#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  char c;
  string s;
  int cnt = 0;
  cin >> n;
  cin >> s;
  for (int i = 0; i < n; i++) {
    c = s[i];
    if (c == 'R') cnt++;
  }
  cout << cnt << endl;
  if (cnt > (n - cnt))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
