#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int n;
  cin >> n >> s;
  int b = 0, r = 0;
  for (auto c : s) r += (c == 'R'), b = (c == 'B');
  if (r > b)
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
