#define MD 998244353 string@S;ll L=S.size(),p=1024,t=0,c;Mint D[L][p]{{1}},a;rep(l,1,L)rep(s,p)rep(d,10)D[l][s^1<