If a bar magnet is accidentally broken into three pieces as shown in the diagram above, the polarities of P and Q respectively are