import re N = int(input()) S = input() if re.match('^(wa|wo|n|\?|w\?|\?a|\?o)*$', S): print('Yes') else: print('No')