import java.io.{BufferedReader, InputStreamReader}

object Main {
  def main(args: Array[String]): Unit = {
    val n = new BufferedReader(new InputStreamReader(System.in)).readLine().toInt
    System.out.println(
      if((1 to 9).exists(d => n % d == 0 && n / d < 10)) {
        "Yes"
      } else {
        "No"
      }
    )
  }
}
