import Foundation

func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

let nk=readInts()
let n=nk[0]
var flag=0
for i in 1...9{
  for j in 1...9{if i*j==n{flag=1
                          break}}
}

if flag==1{print("Yes")}else{print("No")}