process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = []
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});

reader.on('close', () => {
 var n = Number(lines[0]);
 var a = 0
 
 outer:
 for(i=1; i<=9; i++){
   for(j=1; j<=9; j++){
     if(i * j == n){
       a++;
       console.log("Yes");
       break outer;
     }
   }
 }
 if(a == 0){
   console.log("No");
 }

});