One-third of a class of 39 students took part in a math competition. How many students did not participate in the competition?