import sys
from math import ceil

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

# Get a criteria value from N
criteria_val = ceil(int(N)/2)
print(criteria_val)


# Get a counter of Red
for s_char in s:
  if s_char == "R":
    red_hat_counter += 1
    
# Compare between a criteria value and a counter of Red
if criteria_val < red_hat_counter:
  print("Yes")
else:
  print("No")