function Main(input) {
  for (i = 1; i < 10; i++) {
    var result = input / i
    if (result < 10 && Math.round(result) === result) {
      console.log('Yes')
      return
    }
  }
  console.log('No')
}

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