n = gets.chomp.to_i

if n < 2 then
    puts 0
    exit
end

puts ([*0..9].repeated_permutation(n).size - [*0..8].repeated_permutation(n).size - [*1..9].repeated_permutation(n).size + [*1..8].repeated_permutation(n).size) % (10 ** 9 + 7)
