N = int(input()) MOD = 10 ** 9 + 7 dp = [[0] * 10 for _ in range(N + 1)] for i in range(10): dp[1][i] = 1 for i in range(1, N): for lst in range(10): for nxt in range(lst, 10): dp[i + 1][nxt] += dp[i][lst] dp[i + 1][nxt] %= MOD ans = 0 for i in range(10): ans += dp[N][i] ans %= MOD print(ans)