Patty Mills' 3-pointer with time expiring gave Australia an 82-80 win over Russia in the men's Olympic basketball tournament on Monday.
Australia (3-2) clinched fourth in its group and could face the U.S. team in the quarterfinals Wednesday if the Americans beat Argentina in their game Monday night.
Russia (4-1) had already clinched top spot in Group B.
Australia led for most of the game but Vitaliy Fridzon's two free throws gave Russia an 80-79 lead with four seconds left.
Mills, who missed a 3-pointer with less than a minute remaining, got the ball at the top of the key and nailed the game-winner.
Sasha Kaun led Russia with 18 points, and Alexey Shved and Andrei Kirilenko each had 13. Kirilenko sat out the final minute with a cut above the left eye.
Joe Ingles had 20 points to lead Australia with 20 and Mills added 13.