import java.util.*

fun main(args : Array<String>) {
    val scanner = Scanner(System.`in`)
    val n = scanner.nextInt()

    if (n < 10) {
        println("Yes")
    } else if (n > 81) {
        println("No")
    } else {
        for (i in 2..9) {
            if (n % i == 0) {
                if (n / i < 10) {
                    println("Yes")
                    return
                }
            }
        }
        println("No")
    }
}