n = gets.to_i
flag = false

if n > 81
  puts 'No'
else
  9.times do |i|
    i += 1
    s = n / i
    m = n % i
    if m == 0 and s < 10
      flag = true
      break
    end
  end
  if flag
    puts 'Yes'
  else
    puts 'No'
  end
end
