#include "bits/stdc++.h" using namespace std; #define REP(i, n) for(int i=0; i<(n); i++) #define ALL(a) (a).begin(),(a).end() #define CONTAIN(a, b) find(ALL(a), (b)) != (a).end() int N,T; map check; vector S; map has; signed main() { cin >> N; S.resize(N); REP(i,N) { cin >> S[i]; has[S[i]] = true; } string vowels = "iaaeuu"; string consonants = "tnbmgr"; string t = ""; bool ok = false; do { do { t = ""; REP(i,6) { char c = consonants[i]; if (c != 't') t += c; t += vowels[i]; } //if (check[t]) continue; if (!has[t]) { ok = true; break; } check[t] = true; }while(next_permutation(ALL(consonants))); if (ok) break; }while(next_permutation(ALL(vowels))); if (ok) { cout << t << endl; } else { cout << "NO" << endl; } return 0; }