object Main {
  def main(args:Array[String]) {
    val N = readLine().toInt
    for(i <- 1 until 10) {
      for(j <- 1 until 10) {
        if(i * j == N) {
          println("Yes")
          return 0
        }
      }
    }
    println("No")
  }
}
