let scan_int () = Scanf.scanf " %d" (fun x -> x)

let () =
  let n = scan_int() in
  let count = ref 0 in
  let _ =
    for i = 1 to 9 do
      for j = 1 to 9 do
        if i * j = n then count := !count + 1
      done
    done in
  if !count > 0 then Printf.printf "Yes\n"
  else Printf.printf "No\n"