#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, i, count = 0, flag = 0;
  cin >> t;
  string a;
  for (int i = 0; i < t; i++) {
    cin >> a[i];
    if (a[i] == 'r')
      count++;
    else
      flag++;
  }
  if (count > flag) {
    cout << "YEs";
  }
}
