20170822 business.international-business: S&P 500 index gains after recent selloff; energy stocks fall