N = int(input())
s = input()
S = sorted(s)
idx = N // 2 - 1 if N % 2 == 0 else N // 2
ans = 'Yes' if S[idx] == 'R' else 'No'
print(ans)

8bb16551508696c76e24d34d1d400a2166c5d0d6
<mask token>

<mask token>
print(ans)

N = int(input())
s = input()
S = sorted(s)
idx = N // 2 - 1 if N % 2 == 0 else N // 2
ans = 'Yes' if S[idx] == 'R' else 'No'
print(ans)
