Multiple solutions for a class of perturbed second-order differential equations with impulses