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

int main() {
  int x,r,b;
  string s;
  cin >> x;
  cin>>s;

  for(int i=0;i<x;i++){
    if(s.at(i)==R)
      r++;
      else
        b++;
        }
  if (b>=r)
    cout<<"No"<<endl;
  else 
    cout<<"Yes"<<endl;
}
