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

int main() {
  int N;
  cin >> N;
  char S[N];
  cin >> S;
  
  if (count(S.begin(), S.end(), 'R') > count(S.begin(), S.end(), 'B')) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}