#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int ans = 0;
  vector<int> vec(N);
  for (int i = 0; i < N; i++) {
    cin >> vec.at(i);
    char s = vec.at(i);
    if (s == 'R') {
      ans++;
    }
    if (s == 'B') {
      ans--;
    }
  }
  if (ans > 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
