# frozen_string_literal: true

n = gets.strip.to_i

can = false
(1..9).each_with_index do |x, i|
  ((i + 1)..9).each { |y| break can = true if x * y == n }
  break if can
end

puts can ? 'Yes' : 'No'
