Russian President Vladimir Putin praised Donald Trump for understanding the mood of American voters, claimed that only Russia knew the businessman would win the election — and blamed Democrats for being sore losers.

“The losing side always tries to pass the buck,” Putin said at his year-end press conference Friday in Moscow. “They need to learn to lose with dignity.”

Putin insisted that the Motherland didn’t meddle in the US election — even though President Obama said the Russians interfered, and leaks from the CIA and FBI have backed up the accusations that the foreign government carried out the hacks, which released a trove of damaging emails from top Democrats.

“Who knows if they were even hackers? Maybe they were lying on the sofa or the bed,” he shrugged — but added that the hacks “showed the truth.”

It was Trump who “understood the mood of the people and kept going until the end, when nobody believed in him — except us,” Putin said, as reporters applauded.

“Certainly only we knew that he was going to win. No one else did,” Putin said.

He continued: “The Democrats didn’t just lose the presidential election, but the House and the Senate as well. Did I do that as well?”

And he accused Democrats of “losing on every front and looking for people to blame everywhere.”

Putin also cited a recent public opinion poll showing Republican voters in America now look at him more favorably than before.

“I don’t put it down to me, the fact that a large part of Republican voters support the Russian president,” Putin said, according to AFP.

“It means that a large part of the American people have the same idea of how the world should be, of our common dangers and problems,” he added. “It’s good that there are people that sympathize with us in our concept of traditional values.”