#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  string s, ans;
  cin >> N >> s;
  int mid = (N / 2) - 1;
  sort(s.begin(), s.end());
  char w = s.at(mid);
  if (w == 'R')
    ans = "Yes";
  else
    ans = "No";
  cout << ans << endl;
}
