#include<iostream>
using namespace std;
int main(){
int n,cntA =0,cntB = 0;
cin >> n;
char c;
for(int i=0;i<n;i++){
cin >> c;
if(c == 'R')cntA++;
else cntB++;
}
if(cntA > cntB)cout << "Yes" << endl;
else cout << "No";
return 0;
}