function main(input){
  input = Number(input);
  
  for(var i = 1;i < 10;i++){
    if(input % i === 0){
      if(input / i < 10){
        console.log("Yes");
        return;
      }
    }
  }
  console.log("No");
}

main(require("fs").readFileSync("/dev/stdin","utf8"));