object Main extends App {
    val N = readInt
    def calc(i:Int):String =  {
        if(i == 0 ) {
            "No"
        } else if((N / i < 10 && N % i == 0)) {
            "Yes"
        } else {
            calc(i - 1)
        }
    }
    
    println(calc(9))        

}