a = gets.to_i
b = []
for i in (1..10)
    if a % i == 0
        # p i
        # p a / i
        if i < 10 && a / i < 10
            # p i
            b.push(i)
        end
    end
end
# p b.empty?
if b.empty?
    puts "No"
else
    puts "Yes"
end