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

int main(){
int N; string s;
cin >> N;
cin >> s;
int k = 0;
for(int j = 0; j < N; j++){
if(s[j] == 'R'){
k++;
}
}
if(k > N - k){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
return 0;
}