[<AutoOpen>]
module Program

open System

let read f = stdin.ReadLine() |> f
let reada f = stdin.ReadLine().Split() |> Array.map f
let reads f = stdin.ReadLine().Split() |> Array.toList |> List.map f

[<EntryPoint>]
let main _ =
    let N = read int
    let xs =
        [1..N]
        |> List.map (fun x -> (x, N / x, N % x))
    let ans =
        List.exists (fun (x, y, z) -> x <= 9 && y <= 9 && z = 0) xs
    // eprintfn "%A" (xs, ans)
    if ans then
        printfn "Yes"
    else
        printfn "No"
    0