#include <bits/stdc++.h>
using i64 = long long;

int main() {
    int n; std::string s;
    std::cin >> n >> s;
    int r = 0;
    for (auto c : s) if (c == 'R') r++;
    std::cout << (r > n - r ? "Yes" : "No") << std::endl;

    return 0;
}
