Each exterior angle of the regular n-gon has a measure of 3 degrees. How many sides does the polygon have?