A new study out of Denmark found people who take aspirin or ibuprofen on a regular basis have a lower risk of developing two major types of skin cancer.

Researchers said the risk was lowest for people who had taken over-the-counter pain medications for at least seven years.

The study was published in the journal, Cancer.