a = gets.chomp.to_i
for b in 1..9 do
    for c in 1..9 do
        if b * c == a
            flg = true
            break
        else
        end
    end
end
if flg
    puts "Yes"
else
    puts "No"
end