The Goldman Sachs Group, Inc. Medium-Term Notes, Series N Fourth Amended and Restated Distribution Agreement