import re input() print(("Yes" if re.fullmatch("^(w[ao?]|n|\\?[ao]|\?)*$", input()) else "No"))