import java.util.*

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

    (1..9).forEach { x ->
        (1..9).forEach { y ->
            if (x * y == n) {
                println("Yes")
                return
            }
        }
    }
    println("No")
    return
}