Any magnet, whether it is in the shape of a bar or a horseshoe, has two ends, called poles, ---- the magnetic effect is strongest.