If the two north poles or the two south poles come together, the magnets repel each other.
(the two north poles or the two south poles; come together; ) (the magnets; repel; each other)
the two north poles or the two south poles the magnets
come together repel
each other