a = input()
b = input()
c = []
d = []
for i in b:
        if i == "R":
                c.append(i)
        if i == "B":
                d.append(i)
if c > d or c == d:
        print("Yes")
else:
        print("No")
