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

int main() {
	int N;
	cin >> N;
	string s;
	cin >> s;
	int B = 0, R = 0;
	for (int i = 0; i < N; ++i) {
		if (s[i] == 'B') ++B;
		else ++R;
	}
	if (B < R) cout << "Yes";
	else cout << "No";
}