Stocks Rise After a Punishing Week