A student investigates magnetic forces using two toy train carriages on a track, as shown in the diagram.

The student pushes Carriage A towards Carriage B. The magnet on Carriage A repels the magnet on Carriage B.
Identify which poles should be labeled on the left end and the right end of the magnet on Carriage A.