cnt = int(input())

color = input()

r_c = 0
b_c = 0

for i in range(cnt):
    if color[i] == 'R':
        r_c += 1
    elif color[i] == 'B':
        b_c += 1

if r_c > b_c:
    print("YES")
else:
    print("NO")
