N = int(input()) S = input() T = "" while len(T) < N: if (T + "?a") in S: T += "?a" elif (T + "w?") in S: T += "w?" elif (T + "?o") in S: T += "?o" elif (T + "?") in S: T += "?" elif (T + "n") in S: T += "n" else: break if T == S: print("Yes") else: print("No")