#include #include #include #include #include #include #include #include #include #include using ll = long long; using namespace std; int main() { int n, i = 0; string s; cin >> n >> s; while (i < n){ if(s[i] == '?'){ if (s[i+1] == 'o' || s[i+1] == 'a') i += 2; else i++; } else if(s[i] == 'w'){ i++; if (s[i] == 'a' || s[i] == 'o' || s[i] == '?') i++; } else if (s[i] == 'n' || s[i] == '?') i++; else { cout << "No" << endl; return 0; } } cout << "Yes" << endl; }