#include #include #include #include #include #define N 1100 #define LL long long #define mmod 1000000007 using namespace std; LL c[N][N],cnt[30],ans; int len,m; char s[N]; int main() { c[0][0]=1; for(int i=1;i