#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][0] = dp[0][1] = dp[0][2] = 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] == '?'); } } } } cout << (dp[N][1] || dp[N][2] || dp[N][3] ? "Yes":"No") << endl; }