We know that drinking alcohol is probably not the best thing you can do to extend your lifespan. And research has shown that activities like strength training and improving your V02 max can help add years to your life. But if you had to focus your energy on just one of these—in other words, saying goodbye to the bar or getting underneath one a few times a week—which would do the most to extend your longevity?

That’s what a new study aimed to uncover—and the results may surprise you. In a good way! That is, if you’re not ready to give up drinking. No, alcohol is not suddenly healthy. And fitness is still the best investment you can make in your health. But the relationship between the two isn’t as simple as previously thought. And, depending on your current fitness level, hitting the gym might be a better new year’s resolution for improving your longevity than attempting to give up or cut down on your drinking.

What the study found

The Trøndelag Health Study, also known as the HUNT study, is one of the largest ongoing health studies ever conducted. Established to analyze the health and wellbeing of a large population—including the impact of various lifestyle factors like, including diet and exercise—over an extended period of time, the study began in 1984 in the Norwegian county of Trøndelag with a sample size of about 75,000 people.

Related video: Key to longevity? Experts say it’s these 2 factors (Las Vegas Review-Journal)Since then, researchers have reconvened every 10 years to record new data—gathered from a range of inputs, including biological samples, questionnaires, and interviews—and enlist new participants. Four decades in, the study has collected data from well over 100,000 subjects, serving as the basis for hundreds of independent research papers.