#include #include #include using namespace std; int main(int argc, char* argv[]) { int n; cin>>n; int m=20; char ch='a'; int i,j; char ch1=ch; string S; map myMap; map::iterator mit; for (i=0;i'z'){ ch='a'; } if (ch+index=='n'){ index++; } S.push_back(char(ch+index)); ch1=ch+index; } mit=myMap.find(S); if (mit==myMap.end()){ myMap[S]=1; }else{ while(true){ S.erase(S.begin()+1); mit=myMap.find(S); if (mit==myMap.end()){ myMap[S]=1; break; } } } cout<