fun main(args: Array<String>) {
  println(questionB(readLine()!!.toInt()))
}
 
fun questionB(n: Int): String {
    if (n !in 1..100) return "No"
 
    for (i in 1..9) {
        for (j in 1..9) {
            if (n == i * j) return "Yes"
        }
    }
 
    return "No"
}