import sys

_, s = sys.stdin.read().split('\n')
red_hat_counter = 0
blue_hat_counter = 0


# Get a counter of Red
for s_char in s:
  if s_char == "R":
    red_hat_counter += 1
  else:
    blue_hat_counter += 1

# Compare between a criteria value and a counter of Red
if blue_hat_counter < red_hat_counter:
  print("Yes")
else:
  print("No")