Sleep deprivation can affect women and men differently, according to a new study, reports Newsweek.

Researchers from Uppsala University in Sweden recruited 24 young adults—an equal mix of males and females—in order to examine the effects of poor sleep habits. They had some of the participants sleep through the night, while the others pulled an all-nighter.

All of the participants were then assigned a memory task, involving an eight-digit sequence, which they were asked to recall. It’s designed to test the working memory, which refers to your short-term or recent memory. Half of the group learned the numbers in silence, whereas the others heard them while an “auditory distraction” was present, according to the research published Wednesday in the Journal of Sleep Research.