function Main(input) {
    var res = Number(input);
    var ans = 0;
    for(var i = 0;i <= 9; i++){
      for(var j = 0;j <= 9;j++){
        if(i * j === res) {
          ans++;
        }
      }
    }
    if(ans > 0){
      console.log("Yes");
    }else{
      console.log("No");
    }
 }
 
/* var input = `81`;
Main(input);
 */ 
 Main(require("fs").readFileSync("/dev/stdin", "utf8"));