#include #include #include #include #include #include #include #include #include #include using namespace std; //#define __int64 long long #define long __int64 #define REP(i,a,b) for(int i=a;i s; string in; string data = "inabameguru"; string data1 = "iaaeuu"; string data2 = "nbmgr"; string check; int check1[6] = {0,1,2,3,4,5}; int check2[5] = {0,1,2,3,4}; bool flg = true; cin >> n; for(int i=0; i> in; s.push_back(in); } do{ do{ check = ""; for(int i=0; i<5; i++){ check += data1[ check1[i] ]; check += data2[ check2[i] ]; } check += data1[5]; flg = true; for(int i=0; i