import java.util.*
fun main(args: Array<String>) {
    val a = readLine()!!.toInt()
 
    val s = HashSet<Int>()
    (1..9).forEach { x ->
        (1..9).forEach { y ->
            s.add(x * y)
        }
    }
 
    if (s.contains(a)) {
        println("Yes")
    } else {
        println("No")
    }
}