#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int a[26] = {};
  for (auto x : s) a[x - 'A']++;
  cout << (a['R'] > a['B'] ? "Yes" : "No") << endl;
  return 0;
}
