n = int(input()) s = input() i = 0 while i < n: if s[i] == '?': if i + 1 < n and (s[i + 1] == 'a' or s[i + 1] == 'o'): i += 2 else: i += 1 elif s[i] == 'n': i += 1 elif i + 1 < n and (s[i:i + 2] == 'wa' or s[i:i + 2] == 'wo' or s[i:i + 2] == 'w?'): i += 2 else: print("No") exit() print("Yes")