#include <bits/stdc++.h>
#define int long long
using namespace std;

signed main() {
    int n;
    string s;
    cin >> n >> s;

    map<char, int> m;
    for (char c : s) m[c]++;

    cout << (m['R'] > m['B'] ? "Yes" : "No") << endl;
}
