function Main(input) {
  	var r = false
	for(var i=1; i<10; i++){
    	for(var j=1; j<10; j++){
        	if(input === i*j){
              r = true
              break;
            }
        }
    }
  	console.log(r ? "Yes" : "No")
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));