#include <bits/stdc++.h>
int main() {
  int n, i, j;
  char s;
  scanf("%d", &n);
  for (i = 0, j = 0; i <= n; i++) {
    scanf("%c", &s);
    if (s == 'R')
      j++;
    else
      j--;
  }
  if (j > 0)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
