# N, A, B = gets.split(" ").map(&:to_i)
# S = gets.chomp
N = gets.to_i

ok = false
(1..9).each do |x|
    (1..9).each do |y|
        if x*y == N
            ok = true
        end
    end
end

puts ok ? "Yes" : "No"
