import java.lang.Math

fun main(args: Array<String>)
{
    val n = readLine()!!.toInt()

    var flag = false
    for (i in 1..9) {
        val q = n / i
        val r = n % i
        if(q <= 9 && r == 0) {
            flag = true
            break
        }
    }

    println(if(flag) "Yes" else "No")
}
