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