n = int(input())
array = list(input())
array.sort()
length = len(array)
if(length%2==0):
    if(array[int(length/2)-1]=='b'):
        print("No")
    else:
        print("Yes")
else:
    if(array[int(length/2)]=='b'):
        print("No")
    else:
        print("Yes")