let input() = stdin.ReadLine()
let inputs() = input().Split()

let YN b = printfn "%s" (if b then "Yes" else "No")
let print x = printfn "%A" x
let printS (s: string) = printfn "%s" s


let N = int (input())

seq {
    for i in [ 1 .. 9 ] do
        for j in [ 1 .. 9 ] do
            if i * j = N then yield 1
}
|> Seq.isEmpty
|> not
|> YN
