#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  char s[n + 5];
  for (int i = 0; i < n; i++) scanf("%c", &s[i]);
  int judge = (n + 1) / 2;
  int count = 0;
  bool res = false;
  for (int i = 1; i < n + 1; i++) {
    if (s[i] == 'R') {
      count++;
    }
    if (count >= judge) {
      res = true;
      break;
    }
  }
  if (res)
    printf("Yes");
  else
    printf("No");
}
