AtCoder Beginner Contest 178
C
Ubiquity
AtCoder
⌀ 653
原题
← BD →
翻译中…

Problem Statement

翻译中…

How many integer sequences $A_1,A_2,\ldots,A_N$ of length $N$ satisfy all of the following conditions?

翻译中…
  • $0 \leq A_i \leq 9$
  • There exists some $i$ such that $A_i=0$ holds.
  • There exists some $i$ such that $A_i=9$ holds.
翻译中…

The answer can be very large, so output it modulo $10^9 + 7$.

翻译中…

Constraints

翻译中…
  • $1 \leq N \leq 10^6$
  • $N$ is an integer.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N

翻译中…

Output

翻译中…

Print the answer modulo $10^9 + 7$.

翻译中…

样例

Input #1
2
Output #1
2
Two sequences $\{0,9\}$ and $\{9,0\}$ satisfy all conditions.
Input #2
1
Output #2
0
Input #3
869121
Output #3
2511445
题目信息
题号
abc178_c
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。