require 'pp'

def gets; ARGF.gets; end

class Solver

  def initialize
  end

  def main
    n = gets.chomp.to_i

    1.upto(9) do |a|
      d, r = n.divmod(a)
      next if 0 < r

      if 1 <= d && d <= 9
        puts "Yes"
        return
      end
    end

    puts "No"
  end
end

if __FILE__ == $0
  Solver.new.main
end
