#include using namespace std; int main() { int n; cin >> n; string s; cin >> s; for (char c : s) { if (c != '?' and c != 'w' and c != 'a' and c != 'o' and c != 'n') { puts("No"); return 0; } } if (n == 1) { if (s[0] != '?') { if (s[0] != 'n') { puts("No"); return 0; } } } if (s[0] == 'o' or s[0] == 'a') { puts("No"); return 0; } for (int i = 1; i < n; ++i) { if (s[i] == 'o') { if (s[i-1] != '?') { if (s[i] != 'w') { puts("No"); return 0; } } } } for (int i = 1; i < n; ++i) { if (s[i] == 'a') { if (s[i-1] != '?') { if (s[i] != 'w') { puts("No"); return 0; } } } } puts("Yes"); return 0; }