By convention, they leave from the North pole of the magnet and enters the South pole of the magnet.
(they; leave; from the North pole of the magnet) (they; enters; the South pole of the magnet)
they they
leave enters
from the North pole of the magnet
the South pole of the magnet