fun main() {
    val N = readLine()!!.toInt()
    for (i in 1..9) {
        if (N % i == 0) {
            val r = N / i
            if (r in 1..9) {
                println("Yes")
                return
            }
        }
    }
    println("No")
}