Another way to say "staying healthy is for living longer" is "One might live longer if one attends to physical and mental health."