n=int(input()) s=list(input()) while True: if len(s) == 0: print('Yes') exit() if len(s) == 1: if s[0] == 'n' or s[0] == '?': print('Yes') exit() else: print('No') exit() else: f = 0 if len(s) > 2 and s[-1] =='?' and s[-2] == '?' and s[-3] =='w': s.pop() s.pop() s.pop() f =1 elif s[-1] == 'n': s.pop() f = 1 elif (s[-1] == 'o' or s[-1] == '?') and (s[-2] == 'w' or s[-2] == '?'): s.pop() s.pop() f = 1 elif (s[-1] == 'a' or s[-1] == '?') and (s[-2] == 'w' or s[-2] == '?'): s.pop() s.pop() f = 1 elif s[-1] == '?': s.pop() f = 1 if f == 0: print('No') exit()