#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  string s;
  cin >> n >> s;
  int b = count(s.begin(), s.end(), 'B'), r = count(s.begin(), s.end(), 'R');
  cout << ((b < r) ? "Yes" : "No") << endl;
  return 0;
}