 The winners and runners-up from each group, as well as the best four third-placed teams, qualified for the first round of the knockout stage.The ranking of each team in each group were determined as follows