#include using namespace std; #define modulo 1000000007 #define mod(mod_x) ((((long long)mod_x+modulo))%modulo) #define Inf 1000000000LL int main(){ string S; cin>>S; vector> dp(S.size()+1,vector(9,0)); dp[0][0] = 1; for(int i=0;i>D; if(D==0){ bool f = true; for(int i=0;i