#include typedef long long ll; const ll MOD = 1000000000 + 9; ll dp[10][90002]; int main(){ dp[0][0] = 1ll; for(int i=1;i<10;i++){ for(int j=0;j<=90001;j++){ dp[i][j] = dp[i-1][j]; if(j-i >= 0){ dp[i][j] = (dp[i][j] + dp[i][j-i]) % MOD; } } } for(int j=1;j<=90001;j++){ dp[9][j] = (dp[9][j] + dp[9][j-1]) % MOD; } int T; scanf("%d", &T); for(int _=0;_(M / 111111ll); printf("%lld\n", dp[9][k]); } }