Defending champion Mexico has been eliminated from the men's soccer tournament after 1-0 loss to South Korea.
Kwon Chang-hoon scored a 77th-minute winner in Brasilia to end Mexico's hopes of repeating as Olympic champion on Wednesday. The Mexicans upset Brazil in the final of the London Games four years ago.
South Korea finished Group C with seven points, two more than Germany and three more than Mexico.
Germany secured its spot in the quarterfinals by thrashing newcomer Fiji 10-0. Nils Petersen scored five goals and Maximilian Meyer added three in Germany's win 10-0 win against Fiji at the Mineirao Stadium in Belo Horizonte, the same place where the senior team routed Brazil 7-1 in the semifinals of the 2014 World Cup.
Fiji had already lost 5-1 to Mexico and 8-0 to South Korea.