MOD = 10**9 + 7 n = int(input()) ans = 10 dp = [[0] * 10 for _ in range(n + 1)] dp[1] = [1]*10 for i in range(2,n + 1): for j in range(10): if i == 2: for k in range(1,j + 1): dp[i][j] += dp[i - 1][k] dp[i][j] %= MOD ans += dp[i][j] ans %= MOD else: for k in range(j + 1): dp[i][j] += dp[i - 1][k] dp[i][j] %= MOD ans += dp[i][j] ans %= MOD print(ans)