#include <bits/stdc++.h>
using namespace std;
bool check(char s) {
  if (s == 'a' || s == 'e' || s == 'o' || s == 'i' || s == 'u')
    return true;
  else
    return false;
}
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int c = 0;
  if ((s[n - 1] == 'a') || (s[n - 1] == 'e') || (s[n - 1] == 'o') ||
      (s[n - 1] == 'i') || (s[n - 1] == 'u') || (s[n - 1] == 'n')) {
    for (int i = 0; i < n; i++) {
      if (!(check(s[i]))) {
        c++;
        if (check(s[i + 1]) || s[i] == 'n') {
          c--;
        }
      }
    }
    if (c == 0)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else
    cout << "NO" << endl;
}
