def get_int
  gets.chop.to_i
end

def get_ints
  gets.chop.split.map(&:to_i)
end

def get_double
  gets.chop.to_f
end

def get_str
  gets.chop
end

def get_strs
  gets.chop.split
end

def main
  n = get_int
  1.upto(n) do |i|
    if n % i == 0
      j = n / i
      if i <= 9 and j <= 9
        puts "Yes"
        exit 0
      end
    end
  end
  puts "No"
end

if __FILE__ == $0
  main
end