'use strict';

function answer(bool) {
  if (bool) console.log('Yes');
  else console.log('No');
}

function main(stdin) {
  const input = stdin.split(' ').map(v => parseInt(v, 10));
  const N = input[0];

  let ans = false;

  for (let i = 1; i <= 9; i++) {
    for (let j = 1; j <= 9; j++) {
      if (i * j == N) ans = true;
    }
  }

  answer(ans);
}

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