#include <bits/stdc++.h>
using namespace std;
int dx[4] = {0, 0, 1, -1};
int dy[4] = {1, -1, 0, 0};
const int INF = 1 << 29;
const long long LNF = 1LL << 60;
long long v[110];
long long w[110];
long long dp[110][100010];
int main() {
  int N;
  cin >> N;
  int r, b;
  string S;
  cin >> S;
  for (int i = 0; i < N; i++) {
    if (S[i] == 'B') {
      b++;
    } else {
      r++;
    }
  }
  if (r > b)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
