// Atcoder144 - B
function main(input) {
  const inputs = input.split('¥n');
  const n = parseInt(inputs[0], 10);

  var answers = [];
  for (var i = 0; i < 10; i++) {
    for (var j = 0; j < 10; j++) {
      answers.push(i * j);
    }
  }
  console.log(answers.indexOf(n) >= 0 ? 'Yes' : 'No');
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
