#include <bits/stdc++.h>
int main() {
  int n;
  std::cin >> n;
  int x = 0;
  for (int i = 0; i < n; ++i) {
    char c;
    std::cin >> c;
    if (c == 'R')
      ++c;
    else
      --c;
  }
  if (x > 0)
    std::cout << "Yes" << std::endl;
  else
    std::cout << "No" << std::endl;
}
