def main(argv)
  n = gets.chomp.to_i
  
  flag = false
  (1..9).each do |a|
    if n % a == 0 and n / a <= 9 then
      flag = true
    end
  end
  
  puts (flag ? 'Yes' : 'No')
end

if self.to_s == 'main' then
  main(ARGV)
end