The exterior angle of a regular polygon is an eighth of interior angle. How many sides does the regular polygon have?