#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, i, tmp, r, b;
  cin >> N;
  vector<int> a(N);
  string s;
  cin >> s;
  for (i = 0; i < N; i++) {
    if (s[i] == 'R') r++;
    if (s[i] == 'B') b++;
  }
  if (r > b) {
    std::cout << "Yes" << endl;
    return 0;
  } else {
    std::cout << "No" << endl;
    return 0;
  }
}
