Why long-term investments are key to surviving inflation