#int(input())
#map(int, input().split())
#list(map(int, input().split()))

N = int(input())
S = input()[::-1]

i = 0
s2 = ["aw", "ow", "?w", "a?", "o?"]
s1 = ["n", "?"]
while i < N:
    if S[i:i+2] in s2:
        i += 2
    elif S[i:i+1] in s1:
        i += 1
    else:
        break

if i >= N:
    print("Yes")
else:
    print("No")