The holders Brazil have beaten Ecuador 4-2 to finish top of Group B at football's Copa America tournament in Argentina to set up a quarter-final against Paraguay.
Venezuela finished second after scoring two late goals to draw with Paraguay and will play Chile.
The other quarter-finals pit Argentina against neighbours and fierce rivals Uruguay while Colombia will play Peru.