let isqq n =
    let qqList =
        seq {for a in 1..9 do
             for b in 1..9 do
             yield a * b}
    qqList
    |> Seq.contains n
            

let n = stdin.ReadLine() |> int
let ans = if isqq n then "Yes" else "No"

printfn "%s" ans