n = gets.to_i
no = true

(1..9).each do |i|
  j = n/i
  if j > 9
    next
  else
    if n%i == 0
      print("Yes")
      no = false
      break
    else
      next
    end
  end
end

if no
  print("No")
end