from collections import Counter from re import compile def main(): N = int(input()) S = input() ctr = Counter(S) if len(S) > ctr["w"] + ctr["a"] + ctr["o"] + ctr["n"] + ctr["?"]: print("No") return idx = 0 while idx < N: if idx == N - 1: if S[idx] in ("?", "n"): print("Yes") else: print("No") return if idx == N - 2: if S[idx] == "w": if S[idx + 1] in ("a", "o", "?"): print("Yes") else: print("No") return if S[idx] in ("a", "o"): print("No") return if S[idx] == "n": if S[idx + 1] in ("n", "?"): print("Yes") else: print("No") return if S[idx] == "?": if S[idx + 1] == "w": print("No") else: print("Yes") return l_1, l_2, l_3 = S[idx:idx + 3] if l_1 in ("a", "o"): print("No") return if l_1 == "n": idx += 1 continue if l_1 == "w": if l_2 in ("a", "o", "?"): idx += 2 continue print("No") return if l_1 == "?": if l_2 == "w": print("No") return if l_2 != "?": idx += 2 continue if l_3 == "w": idx += 2 continue if l_3 in ("a", "o", "n"): idx += 3 continue idx += 1 if __name__ == "__main__": main()