'use script';

{
function Main(input) {
 	const N = input;
	const b = BigInt(1000000000+7);

	function x(m){

		let d = BigInt(1);

		for(i=0; i<N; i++){
				d *= BigInt(m);
				d %= b;
		}
		
	return(d)
	}

	let ans = (x(10)-x(9))+(x(10)-x(9))-(x(10)-x(8))%b;
  	console.log(ans.toString());
  
	}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));

}