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