S&P 500 above three-month high on more signs of cooling inflation