#include <bits/stdc++.h>
using namespace std;
int A, B, C, D, N, M;
int main() {
  ios::sync_with_stdio(false);
  cin >> N;
  string in;
  cin >> in;
  int r, b;
  for (auto i = begin(in); i != end(in); i++) {
    if (*i == 'R')
      r++;
    else
      b++;
  }
  if (r > b)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
