'use strict';

function main(input) {
  const arr = input.trim().split('\n');
  const a = Number(arr[0]);
  let b = 0;
  let isKuku = false;

  for (let i = 1; i <= 9; i++) {
    if (a % i === 0) {
      b = a / i;
      if (b >= 1 && b <= 9) {
        isKuku = true;
      }
    }
  }

  console.log(isKuku ? 'Yes' : 'No');
}

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