import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;

void main() {
  int n;
  string s;
  readf (" %d\n%s", &n, &s);
  int r, b;
  foreach (i; 0 .. n) {
    if (s[i] == 'R') ++r;
    if (s[i] == 'B') ++b;
  }
  writeln (r > b ? "Yes" : "No");
}
