#include <bits/stdc++.h>
using namespace std;
const int inf = 1 << 30;
const long long linf = 1ll << 60;
const long long mod = 1e9 + 7;
template <class t>
bool chmax(t &a, const t &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class t>
bool chmin(t &a, const t &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  int n;
  cin >> n;
  int r = 0, b = 0;
  (i, a, b) for (int i = (a); i <= (b); i++)(i, 1, n) {
    char s;
    cin >> s;
    if (s == 'r')
      r += 1;
    else
      b += 1;
  }
  if (r > b)
    cout << "yes";
  else
    cout << "false";
  return 0;
}
