def solve(N, S): candidate = ["wa", "wo", "n"] while True: if len(S) == 0: break if S[0] == '?' and len(S) == 1: S = [] break if S[0] == '?' and S[1] == '?': S = S[1:] continue match = False for cc in candidate: match = True for i in range(len(cc)): if S[i] != '?' and S[i] != cc[i]: match = False break if match: S = S[len(cc):] break if not match: break if len(S) == 0: print("Yes") else: print("No") N = int(input()) S = input() solve(N, S)