import java.util.*;

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
  val input = sc.nextInt()

  for (i in 1..9) {
    if (input % i != 0) continue
    val a = input / i
    if (input / i in 1..9) {
      println(true)
      return
    }
  }
   println(false)
}