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