There are 24 teams participating in the final of a certain football match. They are first divided into six groups for a round-robin match to determine the top 16. These 16 teams will go through a knockout match according to the established procedures, and finally decide the first, second, third, and fourth place. How many games are scheduled?
某足球赛决赛，共有24个队伍参加，他们先分成六个小组进行循环赛，决出16强，这16个队伍按照确定的程序进行淘汰赛，最后决出一，二，三，四名，总共需要安排几场比赛？
<gadget id="calculator">36 + 8 + 4 + 2 + 1 + 1</gadget>
<output>52</output>

<result>52</result>