#include <bits/stdc++.h>
using namespace std;
constexpr long long TEN(int n) { return (n == 0) ? 1 : 10 * TEN(n - 1); }
template <class T, class U>
ostream& operator<<(ostream& os, const pair<T, U>& p) {
  os << "(" << p.first << "," << p.second << ")";
  return os;
}
template <class T>
ostream& operator<<(ostream& os, const vector<T>& v) {
  os << "{";
  for (int i = 0; i < (v.size()); i++) {
    if (i) os << ",";
    os << v[i];
  }
  os << "}";
  return os;
}
int N;
int main() {
  string s;
  cin >> N >> s;
  int a = 0;
  for (int i = 0; i < (N); i++) {
    if (s[i] == 'R') {
      ++a;
    } else {
      --a;
    }
  }
  puts(a ? "Yes" : "No");
  return 0;
}
