#include <iostream>
#include <vector>
#include <array>
#include <queue>
#include <set>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <random>

using namespace std;
using ll = long long;

ll N, S;

void input() {
    cin >> N >> S;
}

bool solve() {
    ll def = 0;
    for (auto s : S) {
        if (s == 'R')
            def++;
        else
            def--;
    }
    return def > 0;
}

int main() {
    input();
    cout << (solve() ? "Yes" : "No") << endl;
    
    return 0;
}

