#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main() {
	int n;
	string s;
	cin >> n >> s;
	cout << (count(s.begin(), s.end(), 'R') > count(s.begin(), s.end(), 'B') ? "Yes" : "No") << endl;
}