New York Yankees manager Joe Girardi presents President Barack Obama...

New York Yankees manager Joe Girardi presents President Barack Obama with an autographed jersey during an event with the 2009 World Series champions of Major League Baseball in the East Room of the White House in Washington, DC, April 26, 2010. Credit: Getty/SAUL LOEB

President Barack Obama celebrated the world champion Yankees on Monday for their heroics and character — and bemoaned that his Chicago White Sox couldn’t match New York’s remarkable record of success.

In a jam-packed ceremony in the East Room that was part pep rally, the president pointed out that the last time the Yankees — winners of 27 titles — were toasted at the White House was 2001.

“It’s been nine years since your last title — which must have felt like eternity for Yankee fans. I think other teams would be just fine with a spell like that. The Cubs, for example,” Obama said, drawing laughs from players, coaches, members of his Cabinet and Congress and other guests.

He added that his White Sox have gotten close, including a title in 2005.

The Yankees won the World Series in six games last year, defeating the Philadelphia Phillies. New York Manager Joe Girardi presented Obama with a signed Yankees’ jersey with the No. 27.

The White House visit was the fifth for the Yankees core four — Derek Jeter, Mariano Rivera, Andy Pettitte and Jorge Posada — who have a handful of championship rings. They’ve met three presidents — Bill Clinton in the 1990s, George W. Bush in 2001 and now Obama.

Obama praised the players for their off-field work, from a scholarship that first baseman Mark Teixeira established at his high school with a $75,000 check, to catcher Posada’s work on a support network for families with ailing children to shortstop Jeter’s sportsmanship.

Earlier in the day, members of the team visited war wounded at Walter Reed Army Medical Center, which several players described as a sobering experience.

Third baseman Alex Rodriguez, who wore his championship ring, called the servicemembers the “real heroes” and pitcher Andy Pettitte hailed their sacrifice. Pettitte said even a few Boston Red Sox fans among the wounded appreciated the Yankee visit — though they kept their Red Sox caps on.

Obama said underneath the famed pinstripes the players and coaches “share a belief that anybody blessed with first-class talent also has an obligation to be a first-class person.”

The event at the East Room, typically the site for more formal gatherings such as presidential news conferences and bill signings, was interrupted by shouts from the crowd of “hip, hip, Jorge” for Posada and handshakes from the president.

Greeting pitcher CC Sabathia, Obama could be heard saying, “watched your no-hitter,” a near no-hitter earlier this season. There was even a bit of sports trash talk.

Posing with the team, assembled on risers, Obama smiled broadly, then realized the photograph should include the World Series trophy.

After Girardi brought it over, a member of the Yankee organization shouted out that it might be the White Sox’s No. 1 fan’s only chance to hold the trophy. The remark drew laughs from the crowd.

More Yankees headlines

Newsday LogoCovering LI news as it happensDigital AccessOnly 25¢for 5 months