#include <bits/stdc++.h>
using namespace std;
int main(){
	ios_base::sync_with_stdio(false); 
    cin.tie(NULL);
    long long n;
    string s;
    cin>>n;
    cin>>s;
    counter = 0;
    for(long long i=0;i<n;i++){
    	if(s.at(i)=="R"){
    		counter++;
    	}
    	else{
    		counter--;
    	}
    }
    if(counter>0){
    	cout<<"Yes"<<endl;
    }
    else{
    	cout<<"No"<<endl;
    }
    return 0;
}