There are N people numbered 1 to N. Each person wears a red hat or a blue hat.  You are given a string s representing the colors of the people. Person i wears a red hat if s_i is `R`, and a blue hat if s_i is `B`.  Determine if there are more people wearing a red hat than people wearing a blue hat.
N = int(input())
s = input()

R = s.count('R')
B = s.count('B')

if R > B:
    print('YES')
else:
    print('NO')

N = int(input())
s = input()

R = s.count('R')
B = s.count('B')

if R > B:
    print('Yes')
else:
    print('No')
