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