import kotlin.system.exitProcess

fun main(args: Array<String>){
  val n = readLine()!!.toInt()

  val array = IntArray(81)
  for( i in 0..8 ) for( j in 0..8 )
    array[i*9+j] = (i+1)*(j+1)

  for( i in 0..80 )
    if( array[i] == n ){
      println("Yes")
      exitProcess(0)
    }

  println("No")
}
