What is the smallest positive integer nnn such that 1n\frac{1}{n}n1 is a terminating decimal and nnn contains the digit 9?