#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define INF (1<<29) #define rep(i,n) for(int i=0;i<(int)(n);i++) #define all(v) v.begin(),v.end() #define uniq(v) v.erase(unique(all(v)),v.end()) #define indexOf(v,x) (find(all(v),x)-v.begin()) bool siin(char c){ return c!='a'&&c!='i'&&c!='u'&&c!='e'&&c!='o'; } int main(){ string str("inabameguru"); int n,idx=0; cin>>n; vector s(n); rep(i,n)cin>>s[i]; sort(all(str)); sort(all(s)); do{ bool ok=true; rep(i,str.size()-1){ if(siin(str[i])&&siin(str[i+1]))ok=false; } if(siin(str[str.size()-1]))ok=false; while(idx