
object Main extends App {

  val n = scala.io.StdIn.readInt()


  def solve() =  {
    val list: Seq[Double] = (1 to 9).map(_.toDouble)
    val divisions = (1 to 9).map { num => n.toDouble / num }
    val isKuKu = divisions.exists(list.contains)
    if(isKuKu) "Yes" else "No"
  }

  println(solve)

}
