#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template <typename T>
using ve = vector<T>;
template <typename T>
using pq2 = priority_queue<T>;
template <typename T>
using pq1 = priority_queue<T, vector<T>, greater<T>>;
int main() {
  int N;
  cin >> N;
  string s;
  cin >> s;
  int r, b = 0;
  for (int i = 0; i < (N); i++) {
    if (s[i] == 'R')
      r++;
    else
      b++;
  }
  r > b ? cout << "Yes" << endl : cout << "No" << endl;
  return 0;
}
