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

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