#include int getpos(char c) { return c - 'a'; } #define vb vector using namespace std; map st; vb tmp, tmp2; int main() { int res=0; int n; cin >> n; string str; cin >> str; for(int i=0;i<20;i++){ tmp.push_back(false); } st.emplace(tmp,-1); for(int i=0;i