import java.util.Scanner
import java.io.PrintWriter

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val pw = new PrintWriter(System.out)

    val n = sc.nextInt()
    var set: Set[Int] = Set()
    for (i <- 1 to 9) {
      for (j <- i to 9) {
        set += i * j
      }
    }
    if (set.contains(n)) {
      pw.println("Yes")
    } else {
      pw.println("No")
    }

    pw.flush()
  }
}