import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val n = sc.nextInt

  val a = (1 to 9).find{ num =>
    n % num == 0 && 1 <= (n / num) && (n / num) <= 9
  }

  val res = if(a.nonEmpty) "Yes" else "No"

  println(res)



}
