def bb144
    n = gets.chomp.to_i

    for a in 1..9
        for b in 1..9
            if a*b == n
                puts 'Yes'
                exit
            end
        end
    end

    puts 'No'
end

bb144