import scala.util.control.Breaks

object Main extends App {
  val n =  scala.io.StdIn.readInt()
  var result = "No"
  val b = new Breaks
  b.breakable {
    (1 to 9).foreach { i =>
      if (n % i == 0) {
        val i2 = n / i
        if(i2 < 10) {
          result = "Yes"
          b.break
        }
      }
    }
  }
  println(result)
}