function Main (input){
  input = input.split("\n");
  tmp = input[0].split(" ");
  var N = parseInt(tmp[0],10);
  var gouri = 0;
  for(x = 1; x < 10; x++){
    for(y = 1; y < 10; y++){
      if(x*y === N){
        gouri++;
      }else{
      }
    }
  }
  if(gouri > 0){
    console.log("Yes");
  }else{
    console.log("No");
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));