'use strict';
const main = input => {
  const n = parseInt(input[0]);
  let check = 0
  for(let i=1; i<=9; i++) {
    if (n%i == 0 && n/i <= 9) {
      check = 1;
      break;
    }
  }
  console.log(check==1?'Yes':'No');
  
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));