#include using namespace std; int main(){ int N; string S; cin >> N >> S; vector> dp(N+1, vector(4, false)); map M; M['w'] = 0; M['a'] = 1; M['o'] = 2; M['n'] = 3; dp[0][3] = true; for(int i = 0; i < N; i++) for(int j = 0; j < 4; j++){ if(dp[i][j]){ if(j==-0){ dp[i+1][1] = (S[i]=='a'||S[i] == '?'); dp[i+1][2] = (S[i]=='o'||S[i] == '?'); } else { dp[i+1][0] = (S[i]=='w'||S[i] == '?'); dp[i+1][3] = (S[i]=='n'||S[i] == '?'); } } } bool can = 0; for(int i = 0; i < 4; i++) can = can | dp[N][i]; cout << (can ? "Yes":"No") << endl; }