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