Phillip Danault scored twice and added two assists as the last-place Montreal Canadiens beat the New York Rangers 5-4 on Saturday for their third victory of the season.

Paul Byron, Alex Galchenyuk and Max Pacioretty also scored for the Canadiens (3-7-1). Carey Price made 22 saves in the final game of Montreal's three-game homestand.

Price improved to 16-6-1 all-time against the Rangers in the regular season, winning 12 of his last 14 games.

Pavel Buchnevich, Rick Nash, Mika Zibanejad and Brady Skjei scored for the Rangers (3-7-2) in just their third away game of the season. Ondrej Pavelec stopped 38-of-43 shots in defeat.

Pavelec, backup to Henrik Lundqvist, made his second start for New York after leading his team to victory on Thursday. Pavelec is now winless in Montreal in his last eight appearances.

Montreal outshot New York 43-26.

The Canadiens blew a 3-0 lead after the first period but still earned two points when Danault broke a 4-4 deadlock at 9:37 of the third went he went five-hole on Pavelec.

With a delayed penalty coming to the Rangers, Montreal went up 1-0 in the first when Jonathan Drouin found Byron alone in the slot at 7:51 for his third of the season.

Galchenyuk doubled the home side's lead at 11:09. Brendan Gallagher fed Galchenyuk with a cross-crease pass for his third power-play marker of the year.

Danault scored two minutes later, his first of the game, as the Habs went up 3-0. Danault cashed in a rebound after Andrew Shaw fired the puck on Pavelec on a 2-on-1. Montreal outshot New York 19-2 in the period.

It was the first four-point game of Danault's career.

The Rangers came out with more energy in the second period as Buchnevich got a goal back at 2:21 from the point on the power play. Price never saw the puck with the big-bodied Nash in the way.

Midway through the period, Nash scored on a wraparound with Price out of position.

Pacioretty's goal at 14:38 of the second period restored Montreal's two-goal lead. The Canadiens captain put the puck between Pavelec's pads after the Rangers goalie made the initial stop on Shea Weber.

Zibanejad made it 4-3 to start the third period as he capitalized on poor defensive coverage from Tomas Plekanec.

Skjei completed the comeback for New York when his shot from the point went off Plekanec's backside and in at 7:00 of the third.

Notes: The Canadiens have at least 30 shots on net in every game this year. … Montreal lost 2-0 to New York earlier this season.