#include <iostream>
using namespace std;
int main(){
  int n;cin>>n;
  int r=0,b=0;
  string s;cin>>s;
  for(int i = 0; n > i; i++){
    if(s[i] == 'R')r++;
    else b++;
  }
  if(r > b)cout << "Yes" << endl;
  else cout << "No" << endl;
}