#include <bits/stdc++.h>
using namespace std;
int N;
string s;
int main() {
  cin >> N >> s;
  int r = 0;
  for (int i = 0; i < N; i++) {
    (s[i] == 'R' ? r++ : r--);
  }
  cout << (r ? "Yes" : "No") << endl;
  return 0;
}
