Congo are safely through to the quarter-finals of the Africa Cup of Nations as Group A winners after beating Burkina Faso 2-1 in Ebebiyin.