/************************************************************** User: error408 Language: C/C++ School: SSDUT Saying: Do one thing at a time,and do well. ****************************************************************/ #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define clr(s,x) memset((s),(x),sizeof(s)) #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 #define lowbit(x) (x&(-x)) #define PB push_back #define For(i,a,b) for(int i=a;i vint; typedef vector vstring; /************************************END DEFINE*********************************************/ const int maxn = 1e5 + 100; const int mod = 9973; int pow_mod(int x,int y){ int sum=1; while(y){ if(y&1)sum=(sum*x)%mod; x=(x*x)%mod; y>>=1; } return sum; } char s[maxn]; int num[maxn]; int main() { int n; while(cin>>n){ scanf("%s",s); int len = strlen(s); num[0] = 1; for(int i=0;i