Investing helps combat inflation