'use strict'
function Main(input) {
	let num = input;
  	let count = 0;
	for (let i = 1; i < 10; i++) {
		let divide = num / i;
		if (divide < 10 && Number.isInteger(divide)) {
        	count+=1;
        } 
    }
  console.log(count > 0 ? 'Yes' : 'No');
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
