n = int(input()) if input().count('?') * 2 >= n: print('Yes') else: print('No')