#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int R = 0;
  int B = 0;
  string s;
  char r[2] = "R";
  char b[2] = "B";
  char ans[101];
  cin >> s;
  for (int i = 0; i <= N; i++) {
    ans[i] = s[i];
    if (ans[i] == r[2]) {
      R++;
    } else {
      B++;
    }
  }
  if (R > B) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}
