#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 4000000000000000001 bool check(string s,string t){ if(s.size()!=t.size())return false; rep(i,s.size()){ if(s[i]=='?'||t[i]=='?')continue; if(s[i]!=t[i])return false; } return true; } int main(){ int n; cin>>n; string s; cin>>s; vector dp(n+1); dp[0] = true; rep(i,n){ if(dp[i]==false)continue; if(check(s.substr(i,2),"wa")||check(s.substr(i,2),"wo"))dp[i+2] = true; if(check(s.substr(i,1),"n"))dp[i+1] = true; } cout<<(dp.back()?"Yes":"No")<