fun main(args : Array<String>){
    val n = readLine()?.toInt()?: return
    var divisor:Int = 0

    for(i in 9 downTo 1){
        if(n % i == 0) {
            divisor = n / i
            break
        }
    }

    if(divisor == 0 || divisor > 9){
        println("No")
    } else{
        println("Yes")
    }
}