N=int(input()) if N==1: print(10) exit() else: ans=10 dp=[[0 for i in range(10)] for j in range(N+1)] #dp[K][i] = K桁めまで見て末尾がi以下のもの mod =10**9 + 7 for i in range(10): if i==0: dp[2][i]=i else: dp[2][i]=i+dp[2][i-1] for i in range(3,N+1): for j in range(1,10): dp[i][j]=(dp[i][j-1]+dp[i-1][j])%mod for i in range(2,N+1): ans+=dp[i][9] ans%=mod print(ans)