import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline readlines=sys.stdin.buffer.readlines MOD=10**9+9 def solve(m): n=len(m) dp=[[[0]*(n*9+1) for i in range(n)] for j in range(2)] for i in range(10): if i==int(m[0]): dp[0][0][i]+=1 elif i0)%MOD print(ans)