import sys sys.setrecursionlimit(5*10**5) input = sys.stdin.readline from collections import defaultdict, deque, Counter from heapq import heappop, heappush from bisect import bisect_left, bisect_right from math import gcd N = int(input()) s = "x" + input().rstrip() dp = [0]*(N+1) dp[0] = 1 wa = "wa" wo = "wo" n = "n" x = set(["wa","?a","w?","wo","w?", "?o", "??"]) for i in range(1, N+1): si = s[i] if si == "?" or si == n: dp[i] |= dp[i-1] if i >= 2: pre = s[i-1] w = pre + si if pre + si in x: dp[i] |= dp[i-2] print('Yes') if dp[-1] else print('No')