those who reach the first and second place of each group qualify for the semifinal