#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int lld; typedef pair PII; const int INF = (1<<31)-1; const lld LINF = (1LL<<63)-1; const int NMAX = 100000+5; const int MMAX = 100000+5; const int KMAX = 100000+5; const int PMAX = 100000+5; const int LMAX = 100000+5; const int VMAX = 100000+5; int N,L[100]; char S[100]; char A[100][100]; char St[100]; void Back(int p) { int i,c=S[p]-'0'; for(i=0; i