If they do repel each other, turn one of the magnets 180 degrees until they no longer repel each other when the sides match.
(they; do repel; each other) (they; repel; each other; T:when the sides match; T:no longer) (the sides; match; )
they they the sides
do repel repel match
each other
each other T:when the sides match T:no longer