let () = Scanf.scanf "%d" @@ fun n ->
  let array = Array.make 110 false in
  for i=1 to 9 do
    for j=1 to 9 do
      array.(i*j) <- true
    done
  done;
  Printf.printf "%s\n" @@
  if array.(n)
  then "Yes"
  else "No"