#include<iostream>
#include<string>
#define int long long
using namespace std;
int a, b;
signed main() {
	string s; cin >> s >> s;
	for (int i = 0; i < s.size(); i++)if (s[i] == 'R')a++; else b++;
	cout << (a > b ? "Yes\n" : "No\n");
}