Brazil reached the next round of the South American Football Confederation Pre-Olympic Tournament after emerging on top from an eight-goal thriller with Bolivia.
The defending Olympic champions triumphed 5-3 as they continued their bid to qualify for the men's tournament at Tokyo 2020 with a third victory from three in Colombia.
They can now not be dislodged from top spot in Group A, with the top two going through to the final stage.
It looked as if the Rio 2016 gold medallists were cruising after they opened up a 4-1 lead at Estadio Centenario in Armenia, only for Bolivia to battle back.
Antony gave the Brazilians a third minute lead when he slid home Paulinho's low cross from close range.
It was 2-0 on 16 minutes when Matheus Cunha escaped through the Bolivian defence and lifted a finish over Ruben Cordano.
Bolivia hit back four minutes later after Henry Vaca's superb through-ball found Victor Abrego, who finished well.
Brazil added a third before half-time, however, when Guga fired into the top of the net after the Bolivian defence had been dissected.
It was 4-1 shortly after the hour mark after Reinier's low finish across Cordano found the corner, but Bolivia then made the game nervy for Brazil.
Abrego smashed in his second from close range on 71 minutes and the gap was trimmed further eight minutes later when Sebastian Reyes struck.
There was to be no further scare and Bolivia were reduced to 10 men when Vaca was sent off for a second bookable offence.
With an extra man, substitute Pepê added a fifth for the Brazilians in stoppage time with a neat finish.
Uruguay moved into second place in the group behind Brazil after they beat Peru 1-0.
Francisco Ginella rifled home the only goal on 11 minutes from outside the area.
Peru keeper Renato Solis got a hand to the low strike but was unable to keep it out.
The Uruguayans are in pole position to qualify alongside Brazil with six points, but have now completed their group matches.
Paraguay, Peru and Bolivia all have three so could all draw level with Uruguay after the last fixtures, with goal difference potentially coming into play.
Uruguay sit on minus one, with Paraguay on zero, Peru on minus one and Bolivia on minus three.
Brazil meet Paraguay on Friday (January 31) with Peru taking on Bolivia.
Group A concludes on Thursday (January 30).
Already qualified Argentina will take on eliminated Venezuela, with hosts Colombia meeting Chile in a straight shoot-out for the right to join them in going through.
The four countries which advance will contest a second group stage, with the top two qualifying for Tokyo 2020.