using System;

namespace B
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            string s = Console.ReadLine();
            string[] str =new string[N];
            for(int i = 0; i <N; i++)
            {
                str[i] = s.Substring(i, 1);
            }
            int rnum = 0;
            int bnum = 0;
            foreach (var item in str)
            {
                if(item == "R")
                {
                    rnum++;
                }
                else
                {
                    bnum++;
                }
            }
            if(rnum > bnum)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}
