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