// inputに入力データ全体が入る
function Main(input) {
  if (input > 81) {
    console.log('No')
    return
  }
  const nums = [1,2,3,4,5,6,7,8,9];
  for (var num of nums) {
    const result = num * nums.forEach(n => n);
    if (result === input){
      console.log('Yes')
      return
    }
    if (result !== input) {
      console.log('No')
      return;
    }
  }
}

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