#include<bits/stdc++.h> using namespace std; int N; set<string>S; char s[]="nbmgr"; char b[]="iaaeuu"; int main(){ scanf("%d",&N); for(int i=0;i<N;i++){ char str[20]; scanf("%s",str); S.insert(str); } sort(s,s+5); sort(b,b+6); do{ do{ for(int i=0;i<6;i++){ string str; for(int j=0;j<5;j++){ if(i==j)str+=b[5]; str+=s[j]; str+=b[j]; } if(i==5)str+=b[5]; if(S.find(str)==S.end()){ printf("%s\n",str.c_str()); return 0; } } }while(next_permutation(b,b+6)); }while(next_permutation(s,s+5)); puts("NO"); return 0; }