Learn to thrive when the circumstances aren’t perfect.