LONDON — Leading a country comes with extraordinary privileges but also, apparently, a price: New research suggests that heads of state age faster than normal and that the stress of the job may shave almost three years off their life expectancy.

Doctors analyzed how long presidents and prime ministers in 17 nations – including Britain, Canada, France and the U.S. – survived after leaving office, compared to the losing candidates. They also observed the number of years that heads of state lived versus what was expected for someone of similar age and gender.

After considering the fates of 279 heads of state and 261 runners-up, they concluded former leaders lived for almost three fewer years than expected. The study was published online Monday in the medical journal, The BMJ.

“To lose a few years is significant,” said Dr. Anupam Jena of Harvard Medical School, the study’s senior author.

“(Leaders) probably felt national priorities were much more pressing than eating right and exercising,” he said, saying Bill Clinton’s weakness for fast food may have resulted in “stress eating.”

After leaving office, Clinton had bypass surgery; he subsequently said he lost weight and became vegan to try to reverse his heart disease.

Other researchers have found that U.S. presidents actually live longer than their constituents.

“The stress could accelerate the graying of hair and wrinkling of skin, but that doesn’t mean they’ll die earlier,” said S. Jay Olshansky, a professor at the University of Illinois at Chicago.

His research on former commanders in chief found they had a longer-than-expected life expectancy, partly because they are part of the top 1 percent of the population that are educated, wealthy and have premium access to health care.

Still, even President Obama recently joked with Canada’s new Prime Minister Justin Trudeau – who is about a decade younger than Obama – about how a country’s top office can speed up aging.

Jena said Trudeau – who is a keen outdoorsman – might fare better than expected.

“Someone like him, who is fit, may be in a better starting position than others,” he said.