Three hours of sleep makes the brain more flexible