a = gets.chomp.to_i

def solve(a)
    ms = 1..9
    ns = 1..9

    ms.each {|m|
        ns.each {|n|
            if m*n == a
                return "Yes"
            end
        }
    }

    return "No"
end

puts solve(a)