N = int(input()) length = N+1 N = "1" + "0" * N #print(N) mod = 10**9+7 dp = [0] * 10 for i in range(length): ndp = [0] * 10 for j in range(10):#dp[j] for k in range(j,10): ndp[k] += dp[j] ndp[k] %= mod if i: for j in range(1,10): ndp[j] += 1 ndp[j] %= mod dp = ndp ans = 0 for i in dp: ans += i ans %= mod print((ans+1)%mod)