open System


[<EntryPoint>]
let main argv =
    let N = stdin.ReadLine()|>int
    [1..9]
    |>Seq.sumBy(fun c -> if(N%c=0)&&(N/c<=9) then 1 else 0)
    |>fun c -> if c>=1 then "Yes" else "No"
    |>stdout.WriteLine
    0