20170822 business.international-business: S&P 500 gains after two days of declines; energy falls