S&P 500, Dow scale fresh three-month peaks