Alexandre Pato and Neymar scored two goals each as defending champion Brazil defeated Ecuador 4-2 to reach the Copa America quarterfinals on Wednesday.

Brazil finished first in Group B and will play Paraguay in the next round. Ecuador was eliminated.

Pato scored with a header in the 28th minute and a close-range shot in the 60th, while Neymar netted from inside the area in the 48th and 76th.

Striker Felipe Caicedo scored for Ecuador in the 37th and 58th.

Earlier, in Salta, Argentina, Grenddy Adrian Perozo scored two minutes into second-half stoppage time as Venezuela rallied for a 3-3 draw with Paraguay.

The result was still good enough to get Paraguay through to the quarterfinals from Group B, eliminating Costa Rica from the South American competition. Venezuela had already advanced.