Ecuador and Japan were eliminated from the Copa America after a 1-1 draw on Monday, giving Paraguay a spot in the quarterfinals of the South American competition.

Paraguay could only cheer after losing to Colombia in Group B on Sunday, but it got the result it needed to advance as one of the top two third-place finishers.

More Images
Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan, as teammate Romario Ibarra runs next to him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador and Japan were eliminated from the Copa America after a 1-1 draw on Monday, giving Paraguay a spot in the quarterfinals of the South American competition.

Japan's Shoya Nakajima, center, celebrates after scoring his side's first goal against Ecuador during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoRicardo Mazalan)

The top two nations in each of the three groups advanced, along with the two best third-place finishers.

Japan's Shoya Nakajima, second left, strike the ball to score against Ecuador, as Ecuador's Carlos Gruezo, left, and goalkeeper Alexander Dominguez fail to stop him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Japan's Shoya Nakajima, second left, strike the ball to score against Ecuador, as Ecuador's Carlos Gruezo, left, and goalkeeper Alexander Dominguez fail to stop him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Japan's Shoya Nakajima (10) runs in jubilation after scoring against Ecuador during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Japan's Shoya Nakajima (10) runs in jubilation after scoring against Ecuador during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador's Angel Mena, second left, celebrates after scoring his side's first goal against Japan during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoRicardo Mazalan)

Ecuador's Angel Mena, second left, celebrates after scoring his side's first goal against Japan during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoRicardo Mazalan)

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan, as teammate Romario Ibarra runs next to him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan, as teammate Romario Ibarra runs next to him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Uruguay won Group C after beating second-place Chile 1-0 in Rio de Janeiro on Monday. Uruguay ended with seven points, one more than the two-time defending champion Chile. Japan finished with two points and Ecuador with one.

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan, as teammate Romario Ibarra runs next to him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan, as teammate Romario Ibarra runs next to him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

The top two nations in each of the three groups advanced, along with the two best third-place finishers.

The quarterfinals will feature Brazil-Paraguay, Venezuela-Argentina, Colombia-Chile and Uruguay-Peru.

More AP soccer: https://apnews.com/apf-Soccer and https://twitter.com/AP_Sports

Japan's Shoya Nakajima, center, celebrates after scoring his side's first goal against Ecuador during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoRicardo Mazalan)

Japan's Shoya Nakajima, center, celebrates after scoring his side's first goal against Ecuador during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoRicardo Mazalan)

Japan's Shoya Nakajima, second left, strike the ball to score against Ecuador, as Ecuador's Carlos Gruezo, left, and goalkeeper Alexander Dominguez fail to stop him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Japan's Shoya Nakajima, second left, strike the ball to score against Ecuador, as Ecuador's Carlos Gruezo, left, and goalkeeper Alexander Dominguez fail to stop him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Japan's Shoya Nakajima (10) runs in jubilation after scoring against Ecuador during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Japan's Shoya Nakajima (10) runs in jubilation after scoring against Ecuador during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador's Angel Mena, second left, celebrates after scoring his side's first goal against Japan during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoRicardo Mazalan)

Ecuador's Angel Mena, second left, celebrates after scoring his side's first goal against Japan during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoRicardo Mazalan)

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan, as teammate Romario Ibarra runs next to him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)

Ecuador's Angel Mena, left, celebrates scoring his team's equalizer against Japan, as teammate Romario Ibarra runs next to him during a Copa America Group C soccer match at the Mineirao stadium in Belo Horizonte, Brazil, Monday, June 24, 2019. (AP PhotoNatacha Pisarenko)