How did the companies in the S&P 500 perform in the third quarter? | The Perryman Group