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