/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <iostream>

using namespace std;

int main()
{
     int t,i,count=0,flag=0;
  cin>>t;
  string a;
 for(int i=0;i<t;i++)
 {
   cin>>a[i];
   
   
   if(a[i]=='R')
     count++;
   else
     flag++;
      
 }
 if(count>flag)
 {
     cout<<"Yes";
 }
  else(count<=flag)
  {
    cout<<"No";
 
  }
}
