fun main(args: Array<String>) {
    val set = mutableSetOf<Int>()
    (1..9).forEach { a ->
        (1..9).forEach { b -> 
            set.add(a * b)
        }
    }
    val n = readLine()!!.toInt()
    if (set.contains(n)) {
        print("Yes")
    } else {
        print("No")
    }
}
