function Main(N) {
  var M = 0;
for(var i = 1;i<10;i++){
  if(Number.isInteger(N / i)){
    if((N/i)< 10){
      M++;
    }
  }
}
if(M < 0 && N<=81){
  console.log("Yes");
}else{
  console.log("No");
}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));