n=int(eval(input()))

print(((10**n-2*9**n+8**n)%(10**9+7)))
m = 10**9 + 7

def powmod(x,y):

  a=1

  for i in range(y):

    a=(a*x)%m

  return a

n=int(eval(input()))

s=powmod(10,n)-2*powmod(9,n)+powmod(8,n)

print(((s+m)%m))
n = int(eval(input()))
print(((10**n - 2 * 9**n + 8**n) % (10**9 + 7)))

m = 10**9 + 7


def powmod(x, y):
    a = 1
    for i in range(y):
        a = (a * x) % m
    return a


n = int(eval(input()))
s = powmod(10, n) - 2 * powmod(9, n) + powmod(8, n)
print(((s + m) % m))

+m = 10**9 + 7 + + +def powmod(x, y): +    a = 1 +    for i in range(y): +        a = (a * x) % m +    return a + + -print(((10**n - 2 * 9**n + 8**n) % (10**9 + 7))) +s = powmod(10, n) - 2 * powmod(9, n) + powmod(8, n) +print(((s + m) % m))