SOCHI, RUSSIA — Roman Cervenka scored for a second time late in the second period, setting up a four-goal lead, and the Czech Republic went on to beat Slovakia, 5-3, today, advancing to an Olympic quarterfinal match against the United States.

The Slovaks pulled within a goal in the third period, but their setback was sealed when Andrej Meszaros was called for slashing with 53 seconds left. They pulled their goaltender to create an even-strength situation, and Tomas Plekanec scored an empty-net goal 14 seconds later for the Czechs.

Former Detroit Red Wings forward Marian Hossa scored twice for the Slovaks. Current Wings forward Tomas Tatar had an assist, and Wings forward Tomas Jurco had one shot on goal.

The Czechs will take on the U.S. team Wednesday for a spot in the semifinals.

Latvia 3, Switzerland 1: Oskars Bartulis and Lauris Darzins scored in the first period as Latvia reached the Olympic men’s hockey quarterfinals for the first time. Edgars Masalskis made 32 saves and Darzins added an empty-net goal in the surprising Latvians’ first Olympic victory since 2002, when they returned to the games after a 66-year absence. Latvia went winless in preliminary-round play in Sochi, losing, 1-0, to the Swiss in its opener.

Latvia and its Canadian coach, Buffalo’s Ted Nolan, advanced to face defending champion Canada in the quarterfinals on Wednesday night.

Former Red Wing Damien Brunner had five shots on goal and was minus-1 for the Swiss.

Slovenia 4, Austria 0: Anze Kopitar scored 5:29 into the first period, and former Detroit Red Wings forward Jan Mursak netted a shorthanded goal in helping Slovenia in the qualification round of the Olympics.

The Olympic hockey rookies will face top-seeded and 2006 Olympic champion Sweden in the quarterfinals Wednesday. Kopitar, who plays for the Los Angeles Kings, is the only NHL player in the Slovenia squad. His father, Matjaz, is the national team’s coach.

Robert Kristan had a 30-save shutout for the Slovenes and had plenty of support offensively.

Jan Urbas scored midway through the first period, and Sabahudin Kovacevic scored early in the second. Austria called timeout late in the game to add an extra skater, and Mursak took advantage with an empty-net goal. Mursak also had an assist and five shots on goal.

Brian Lebler, who played at Michigan, had four shots on goal and was minus-2 for Austria.