#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
	int a, b = 0;
	char k;
	int n;
	cin >> n;
	while (cin >> k) {
		if (k == 'R')a++;
		else b++;
	}
	if(a>b)cout<<"Yes"<<endl;
	else cout << "No" << endl;
}