#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int p;
  cin >> p;
  string br;
  cin >> br;
  int counter = 0;
  for (int i = 0; i > p; i++) {
    if (br[i] == 'R') {
      counter++;
    } else {
      counter--;
    }
  }
  if (counter >= 1) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
