N = gets.to_i
num1 = 0
ans = false

9.times do
    num1 += 1
    num2 = 0

    9.times do
        num2 += 1
        if N == num1 * num2
            ans = true
        end
    end
end

if ans
    puts "Yes"
else
    puts "No"
end
