#include<bits/stdc++.h>
using namespace std;
int main(){
  int n; cin >> n;
  map<char,int>mp
  for(int i = 0; i < n; ++i){
    mp[cin.peek()]++;
    cin.ignore();
  }
  cout << (mp['R'] > mp['B'] ? "Yes" : "No") << endl;
}