if ARGV[0]=="LOCAL_DEV"
  define_method("debug") do |var|
    p var
  end
else
  define_method("debug") do |var|
  end
end

N = STDIN.gets.strip.to_i
(1..9).each do |i|
  (1..9).each do |j|
    if i*j==N
      puts 'Yes'
      exit
    end
  end
end
puts 'No'