#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N, R, B;
  string S, answer;
  cin >> N >> S;
  for (int i = 0; i < N; i++) {
    if (S.at(1) == 'R') {
      R++;
    } else {
      B++;
    }
  }
  if (R > B) {
    answer = "Yes";
  } else {
    answer = "No";
  }
  cout << answer << endl;
}
