#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  string s;
  int r = 0;
  int b = 0;
  cin >> N;
  cin >> s;
  if (N >= 1 && N <= 100 && N == s.size()) {
    for (int i = 0; i < N; i++) {
      if (s[i] != 'R' && s[i] != 'B') cout << "No" << endl;
      break;
      if (s[i] == 'R') r++;
      if (s[i] == 'B') b++;
    }
    if (r + b == N) {
      if (r < b) cout << "No" << endl;
      if (r > b) cout << "Yes" << endl;
    } else
      cout << "No" << endl;
  } else
    cout << "No" << endl;
}
