function Main(input) {
    var data = input.split("\n")
    var answer = false;
	for(var i=1; i<=9;i++){
		if(data[0]/i <=9 && data[0]%i===0 ){
			answer = true;
		}
	}
	if(answer) {
		console.log('Yes');
	}else{
		console.log('No')
	}
}
 
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));