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

int main(){
  int n,cur=0,v;
  cin >> n;
  char c;
  for(int i=0; i<n; i++){
    cin >> c;
    v = (c=='R') ? 1 : -1;
    cur+=v;
  }
  string ans = (cur>0) ? "Yes" : "No";
  cout << ans;
}