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

int main(){
  int N,cnt = 0;
  string S;
  cin >> N >> S;
  for(int i=0;i<N;i++){
    if(S.at(i)=='R')
      cnt++;
  }
  if(cnt>N-cnt)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}