from re import compile def main(): N = int(input()) S = input() prog = compile(r"(wa|wo|n|\?|\?\?|w\?|\?a|\?o)*$") if prog.match(S): print("Yes") else: print("No") if __name__ == "__main__": main()