<>;print<>=~/^(([n?]|[w?][ao?])*)*$/?Yes:No