s = str(input())
counterR = 0
counterB = 0
for i in range(len(s)):
  if(s[i]=="R"):
    counterR += 1
  else:
    counterB += 1
if (counterR > counterB):
  print("Yes")
elif(counterB >= counterR):
  print("No")
else:
  None
