#include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

#define SREP(s,i,m) for(unsigned int i = s; i < m; ++i)
#define REP(i,m) SREP(0,i,m)

using namespace std;
#ifdef _MSC_VER
using LONG = __int64;
using ULONG = unsigned __int64;
#else
using LONG = long long int;
using ULONG = unsigned long long int;
#endif

using namespace std;

int main() {
    string s; int n;
    cin >> n >> s;
    int red = 0, blue = 0;
    for(int i = 0; i < s.size(); ++i) {
        if(s[i] == 'R') red++;
        else blue++;
    }
    cout << (red > blue) ? "Yes" : "No" << endl;
    return 0;
}