#AT1651. C - Ubiquity

C - Ubiquity

问题描述

有多少个长度为NN的整数序列A1,A2,,ANA_1,A_2,\ldots,A_N满足以下所有条件?

  • 0Ai90 \leq A_i \leq 9
  • 存在某个ii使得Ai=0A_i=0
  • 存在某个ii使得Ai=9A_i=9

答案可能非常大,所以将其对109+710^9 + 7取模。

输入

输入以以下格式从标准输入中给出:

NN

输出

打印答案对109+710^9 + 7取模的结果。

示例

见题目描述中的示例。


2
2

Two sequences $\{0,9\}$ and $\{9,0\}$ satisfy all conditions.


1
0

869121
2511445

Constraints

  • $1 \leq N \leq 10^6$
  • $N$ is an integer.