fun main(args: Array<String>) {
  val n = readLine()!!.toInt()
  
  if (n !in 1..100) println("No")

    for (i in 1..9) {
        for (j in 1..9) {
            if (n == i * j) println("Yes")
        }
    }

    println("No")
}