n=int(input()) if n==1: print(10) else: s=[1]*9 c=10 for i in range(1,n): for t in range(0,9): s[t]=sum(s[t:9])%(1000000007) c+=sum(s)%(1000000007) else: if c>=10**9+7: print(c%(1000000007)) else: print(c)