c = [1]*10 for _ in range(int(input())): a = 0 for i in range(10): a = c[i] = (a+c[i])%(10**9+7) print(c[9])