Ivory Coast were made to struggle by rank outsiders Namibia before winning 4-1 with some ruthless finishing to reach the last 16 at the Africa Cup of Nations on Monday.
Max Alain Gradel and Geoffroy Serey Die scored either side of halftime for the Elephants before Namibia, who missed two early chances to take a shock lead, pulled one back when Joslyn Kamatuka pounced on a mistake by goalkeeper Sylvain Gbohou.
Wilfried Zaha and Maxwel Cornet added two more goals in the last 10 minutes to give the scoreline a flattering look on another baking Cairo evening. Three of the goals were set up by AC Milan midfielder Franck Kessie.
Twice champions Ivory Coast finished second in Group D with six points from three games, while Namibia ended bottom without a point. Morocco topped the group with nine points after their 1-0 win over South Africa who finished third with three.
Namibia were left waiting for a first ever win after competing in their third finals, while the Ivorians could look forward to the knockout round.
"We have qualified directly from our group without having to worry about repechage so I'm satisfied," said Ivory Coast coach Ibrahim Kamara.
His opposite number Ricardo Mannetti was angry with the way Namibia failed to make the most of their chances.
"Every mistake we made, the ball ended up in the back of the net," he said. "Ivory Coast made more mistakes and we could only punish them once. That's the difference between the two teams, it's class and that's why we lost 4-1."
"It's just immaturity, we have to improve our quality at all levels."
The game started slowly with an 18:00 local kickoff time but it was Namibia who showed more initiative with Peter Shalulile missing two clear chances.
He headed wide from an unmarked position after Petrus Shitembi got clear down the right and chipped the ball into the middle and then missed another chance by shooting straight at Gbohou's legs.
Namibia were made to regret those misses when Gradel was sent clear by Kessie's pass over the top of the defence and walloped an emphatic finish past Loydt Kazapua in the 38th minute.
Without ever looking convincing, the Ivorians managed to add another in the 58th. Captain Serey Die collected a pass around 30 metres from goal and rifled in a low shot which took a deflection on the way, leaving Kazapua stranded.
Namibia finally got their first goal of the tournament in the 71st minute after Gbohou sent a clearance straight to the feet of Kamatuka who slipped past a defender and slotted the ball into the net.
But Namibia were then twice caught out as Kessie put the ball through for Zaha to add a third goal in the 83rd and provided another pass for Cornet to score five minutes later as the Ivorians handed their opponents a harsh lesson.