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