N = gets.to_i
flag = 0

if N > 81
    puts "No"
else
    9.times do |i|
        9.times do |j|
            if (i + 1) * (j + 1) == N
                flag = 1
                break
            end
        end
    end
    if flag == 1
        puts "Yes"
    else
        puts "No"
    end
end
