n=int(input()) dp=[0]*10 dp[1] = 1 mod=1000000007 for i in range(n+2): for r in range(1,10): dp[r] += dp[r-1] dp[r] %= mod print(dp[-1]%mod)