# coding: utf-8
N = int(input())
s = list(input())
red = 0
blue = 0

for i in range(N):
    print(i)
    if s[i] == 'R':
        red += 1
    elif s[i] == 'B':
        blue += 1

if red > blue:
    print('Yes')
else:
    print('No')