Akash singh is a student of Mathematics at Geekland University. These days he is busy with his girlfriend Jassi. On the other hand, Jassi don't like mathematics that much. One day, Jassi decided to find all the strings of length N (comprising only of characters from '0' to '9') having odd number of 0's.
For Example: 103,012,000 are all strings of length 3 having Odd number of 0's.
She asked Akash to find number of such strings of for a given length of string modulus 1000000009 (10^9 + 9). Akash being busy in organizing college fest asks for your help. Help Akash impressing his girlfriend.

Input: 

First line of input contains an integer t(t ≤ 10000) which is the number of test cases, then, t lines follow each containing an integer N ≤ 10^18

Output:

For each test case print single integer, the number of strings of length N comprising only of characters from '0' to '9'. Having odd number of zeroes. 

SAMPLE INPUT
2
1
2

SAMPLE OUTPUT
1
18

Explanation

Case 1:  only possible case is '0'. 
Case 2: The following string of length 2 contains odd number of zeroes: 
            01,02...,09,10 --> 10 numbers
            20,30,...,90 ---> 8 numbers
            total 18 numbers
from sys import stdin
import math
p = 10**9 + 9
t = int(stdin.readline())
inv = pow(2,p-2,p)
for _ in xrange(t):
	n = int(stdin.readline())
	print (inv*(pow(10,n,p) + p - pow(8,n,p)))%p