Algeria on Sunday became the third country after Egypt and Nigeria to qualify for the knockout stage of the Africa Cup of Nations by edging Burkina Faso 1-0 in Rabat through a Riyad Mahrez penalty. Defending champions Ivory Coast failed to join the trio after drawing 1-1 with Cameroon in a lively Marrakesh showdown.