Barack-etology took a beating this year, but former president Barack Obama still managed to come out a winner, at least as he sees it. That’s because Loyola-Chicago advanced to the Final Four on Saturday.

In an NCAA tournament marked by upset after upset, that was good enough for him.

“Incredible to have a Chicago team in the Final Four,” he tweeted. “I’ll take that over an intact bracket any day!”

He may love Loyola now, but in his bracket he had the Ramblers beating Miami in their first game in the tournament and (oof) losing to Tennessee in the second game.

As for his Barack-et this year, it was excessively chalky and he picked Michigan State (ooh, too bad he added that “State”) to win it all. As for his Final Four, only Villanova remained alive, playing Texas Tech on Sunday for a berth in next week’s Final Four.

Read more NCAA tournament coverage from The Post:

Porter Moser has led Loyola Chicago to new heights after hitting a career low

CBS’s Dana Jacobson asks Florida State’s Leonard Hamilton a question he won’t answer

Kentucky Gentlemen? Wildcats chided for skipping handshakes after Sweet 16 loss.

Jenkins: The secret to buzzer-beaters? It’s all in the (mental) release

Defiant and wounded, Rick Pitino insists he did nothing wrong — and wants back in