const main = (input) => {
  const num = Number(input);
  var flag = true;
  if(num < 10){
    console.log('Yes')
  }
  else{
    for(var i = 2; i < 10; i++){
      if(num % i === 0) {
        if(num / i < 10) {
          flag = false;
          console.log('Yes');
          break;
        }
      }
    }
    if(flag)
      console.log('No');
  }
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));