N = gets.to_i
flag = false
[*1..9].each do |i|
    break if flag
    [*1..9].each do |j|
        if i*j == N then
            flag = true
            break
        end
    end
end
puts flag ? "Yes" : "No"