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

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