How did Egypt survive 5000 years ago?