import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline readlines=sys.stdin.buffer.readlines import numpy as np MOD=10**9+9 def solve(m): n=len(m) dp=np.zeros((2, n+1, n*9+1), np.int64) for i in range(int(m[0])+1): if i==int(m[0]): dp[0][0][i]+=1 else: dp[1][0][i]+=1 for i in range(n-1): for k in range(10): if k