import re n = input() line = input() if n == 0: pass if re.match(r'^(n|w[ao?]|\?[ao]?)*$', line): print('Yes') else: print('No')