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