CALGARY, Alberta (CBS/AP) — Matt Stajan got his first goal in 24 games during Calgary’s three-goal second period, and the Flames beat the San Jose Sharks 5-2 Friday night to clinch a playoff berth.

Johnny Gaudreau, Sean Monahan, Alex Chiasson and Sam Bennett also scored for Calgary, which won three out of the four meetings this season against San Jose. Brian Elliott finished with 36 saves as the Flames pulled one point behind the third-place Sharks in the Pacific Division with four games remaining for each team, including a matchup in the season finale at San Jose.

READ MORE: VIDEO: Asian Man Attacked In Oakland, Tries to Fight Back In Attempted Robbery

Calgary is back in the playoffs for just the second time in eight seasons.

READ MORE: Video: Violent Carjacking From Richmond Auto Dealership; Worker Hurled From Hood Attempting To Stop Thief

Marc-Edouard Vlasic and Melker Karlsson scored for the Sharks, who have lost eight of their last nine. Martin Jones gave uup four goals on 22 shots before he was replaced by Alex Dell to start the third period. Dell stopped all 12 shots he faced.

MORE NEWS: San Francisco Public Elementary School Students Prepare For Monday Return To Classrooms

© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed