In a contest, the participants are numbered consecutively from 1 to 50. The first-place winner is awarded a gold medal, the second-place winner is awarded a silver medal, and the third-place winner is awarded a bronze medal. The remaining participants are divided into groups of 5, and each group is awarded a participation certificate. How many participants receive a participation certificate? Let's think step by step and output the final answer within \boxed{}.
user