The figure shows a bar magnet moving vertically upward toward a horizontal coil. The poles of the bar magnet are labeled X and Y. As the bar magnet approaches the coil, it induces an electric current in the direction indicated on the figure (counter-clockwise as viewed from the above). What are the correct polarities of the magnet?
A) X is a south pole, Y is a north pole
B) X is a north pole, Y is a south pole
C) Both X and Y are north poles
D) Both X and Y are south poles
E) The polarities of the magnet cannot be determined from the information given.