fun main (args:Array<String>){
    val intN = readLine()!!.toInt()
    var count = 0
    for(i in 1..9){
       for(j in 1..9){
           if(i * j == intN) count++
           else continue
       }
    }
    if(count >= 1) print("Yes")
    else print("No")
}