input_lines = input()
n = int(input_lines)
input_lines = input()
r_i = 0
b_i = 0
for c in s:
    if c == 'R':
        r_i += 1
    if c == 'B':
        b_i += 1
    
if r_i > b_i:
    print(''Yes")
else:
    print("No")
