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

    var canDivide = false
    for (i:Int in 1..9) {
        if (canDivide) break
        for (j:Int in 1..9) {
            if (i * j == n) {
                canDivide = true
                println("Yes")
                break
            }
        }
    }
    if (!canDivide) {
        println("No")
    }
}