# -*- coding: utf-8 -*-

from sys import stdin

def load():
    n = stdin.readline()
    return n

n = load()
s = load()

red = 0
blue = 0 
for i in s:
    if i == 'R':
        red += 1
    else:
        blue += 1

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