n = gets.to_i

as = [*1..9]
bs = [*1..9]
able = false

as.each do |a|
    bs.each do |b|
        if a * b == n
            able = true
            break
        end
    end
end

puts able ? 'Yes' : 'No'