
fun main(arr:Array<String>) {
    println(if(isKuku(readLine()!!.toInt())) "Yes" else "No")
}

fun isKuku(num:Int):Boolean {
    for(i in (1..9)) {
        for(j in (1..9)) {
            if(i*j == num) {
                return true
            }
        }
    }
    return false
}