object Main {

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)

    val N = sc.nextInt()
    for {
      a <- (1 to 9)
      b <- (1 to 9)
    } a * b match {
      case N => println("Yes")
      case _ => println("No")
    }
  }

}