#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  string s;
  cin >> s;
  int red = count(s.cbegin(), s.cend(), 'R');
  int blue = count(s.cbegin(), s.cend(), 'B');
  if (red > blue) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
