#include <bits/stdc++.h>
using namespace std;

int N;
string s;
int main(){
	cin >> N;
	cin >> s;
	int r = 0, b = 0;
	for(int i = 0; i < N; i++){
		r += (s[i] == 'R');
		b += (s[i] == 'B');
	}
	cout << (r > b ? "Yes" : "No") <<'\n';
}