#include <bits/stdc++.h>
using namespace std;
string S;
int main() {
  int N, r, b;
  cin >> N;
  cin >> S;
  for (int i = 0; i <= N - 1; i++) {
    if (S[i] == 'R')
      r++;
    else
      b++;
  }
  puts(r > b ? "Yes" : "No");
}
