#include #include #include using namespace std; int voc(char c){ return c=='a' || c=='e' || c=='i' || c=='o' || c=='u'; } int main(){ int L, N; char str1[32], str2[32]; freopen("deli.in", "r", stdin); scanf("%d%d\n", &L, &N); map irr; for (int i=0; i::const_iterator it = irr.find(str); if (it != irr.end()){ printf("%s\n", (it->second).c_str()); } else if (*str.rbegin()=='y' && !voc(*(str.rbegin()+1))){ str.erase(str.end()-1); printf("%sies\n", str.c_str()); } else if (*str.rbegin()=='o' || *str.rbegin()=='s' || *str.rbegin()=='x' || (*str.rbegin()=='h' && (*(str.rbegin()+1)=='c' || *(str.rbegin()+1)=='s'))) printf("%ses\n", str.c_str()); else printf("%ss\n", str.c_str()); } return 0; }