using System;
namespace CSsample
{
    class Bmondai
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            int R = 0;
            int B = 0;
            for (int i = 0; i < input.Length; i++){
                if(input[i] == "R" || input[i] == "r") {
                    R++;
                }else if(input[i] == "B" || input[i] == "b") {
                    B++;
                }
            }
            if(R>B) {
                Console.WriteLine("Yes");
            }else {
                Console.WriteLine("No");
            }
        }
    }
}