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