#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll N;
  string S;
  cin >> N;
  cin >> S;
  ll r = 0;
  for (int i = 0; i < N; ++i) {
    if (S[i] == 'R') r++;
  }
  if (r < N - r)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
}
