from math import gcd
from functools import reduce

N = int(input())
X = list(map(int, input().split()))
Max = max(X)
X = list(map(lambda x: Max - x, X))
GCD = X[0]
for i in X:
    GCD = gcd(GCD, i)
print(sum(X) // GCD, GCD)

# UB_CodeForces
# Advice: Falling down is an accident, staying down is a choice
# Location: Here in Bojnurd
# Caption: Preparing for UBCOMP4 and new starting
# CodeNumber: 608
