Hosts Angola and Algeria qualified for football's African Nations Cup quarter-finals after playing out a goalless draw in their final Group A match.
Mali bowed out despite a 3-1 win over Malawi.
Angola top the standings with five points and will stay in the capital for the weekend's quarter-final.
Algeria also qualified thanks to tournament rules that take into account head-to-head record despite finishing tied on four points with Mali. Algeria beat Mali 1-0 last week.
Both Angola and Algeria were content to settle for the draw long before the final whistle
Both countries will discover the identity of their respective quarter-final opponents tomorrow when Group B is concluded with the game between Burkina Faso and Ghana.
Ivory Coast have already gone through from Group B but it is yet to be determined whether they finish first or second in the standings.