import scala.io.StdIn

object Main {
  def main(args: Array[String]): Unit = {
    val kuku = for {
      x <- 1 to 9
      y <- 1 to 9
    } yield x * y
    val input = StdIn.readLine.toInt
    val res = if (kuku.exists(_ == input)) "Yes" else "No"
    println(res)
  }
}
