Karen bought cupcakes for her sister's birthday party. 3 cupcakes had sprinkles on top. The other 27 cupcakes did not have sprinkles. What percentage of the cupcakes had sprinkles?