let divisible n =
    let rec loop_i i =
        if i > 9 then false else
            if n mod i = 0 && n / i < 10 then true else loop_i (i + 1)
    in
    loop_i 1
;;
Scanf.sscanf (read_line ()) "%d" (fun n -> Printf.printf "%s\n" (if divisible n then "Yes" else "No"))