N = int(input()) mod = 10 ** 9 + 7 pre = [0] * 10 pre[0] = 1 for _ in range(N): dp = [0] * 10 for i in range(10): for j in range(i, 10): dp[j] += pre[i] dp[j] %= mod dp, pre = pre, dp print(sum(pre)%mod)