input = input()
splited = input.splitlines()
fl = splited[0]
sl = splited[1]
red = "R"
blue = "B"
numred = sl.count(red)
numblue = sl.count(blue)
if int(numred) > numblue:
  print("Yes")
else:
  print("No")