let arr=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}

let n : Int = arr[0]

class table99 {
  private var table: [ Int : Bool ] = [:]
  
  init () {
    for i in 1..<9 {
      for j in 1..<9 {
        table[ i * j ] = true
      }
    }
  }
  
  func is99able (number: Int) -> Bool {
    return true
  }
}

let t = table99()
if( t.is99able(n) ) {
  print( "Yes" )
} else {
  print( "No" )
}