#include<iostream>
#include <algorithm>
using namespace std;

int main(){
  int N,cnt=0;
  string s;
  cin>>N>>s;
  cnt=count(s.cbegin(), s.cend(), 'R');
  if(N-cnt<cnt){
    cout<<"Yes";
  }else{
    cout<<"No";
  }
}