A regular 40-sided polygon is rotated with its center of rotation at its center.  What is the smallest degree of rotation needed to map the polygon back on to itself?