#include using namespace std; int main(int argc, char *argv[]){ ios::sync_with_stdio(false); int n; cin >> n; string used[n]; for (int i = 0; i < n; i++) { cin >> used[i]; } string vowel = "iaaeuu"; string consonant = "nbmgr"; sort(vowel.begin(), vowel.end()); sort(consonant.begin(), consonant.end()); bool ok; string ans; char tmp; do{ do{ ok = true; for (int i = 0; i < 6; i++) { ans = ""; int seq = 0; for (int j = 0; j < 5; j++) { if(i == j){ tmp = vowel[j]; ans += tmp; seq++; } tmp = consonant[j]; ans += tmp; tmp = vowel[j + seq]; ans += tmp; } if(seq == 0)ans += vowel.back(); for (int j = 0; j < n; j++) { if(used[j] != ans)continue; ok = false; break; } if(ok)break; } if(ok)break; }while(next_permutation(consonant.begin(), consonant.end())); if(ok)break; }while(next_permutation(vowel.begin(), vowel.end())); if(ok)std::cout << ans << std::endl; else std::cout << "NO" << std::endl; return 0; }