def main():
    n = int(input()) // 2
    numR = 0
    for c in input():
        if c != 'B':
            continue
        numR += 1

        if numR > n:
            print("Yes")
            return
    print("No")


if __name__ == '__main__':
    main()