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