object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt
    for(i <- 1 to 9) {
      for (j <- 1 to 9) {
        if (n == i*j) {
          println("Yes")
          System.exit(0)
        }        
      }
    }
    println("No")
  }
}
