import math
n = int(input())
a = list(map(int, input().split()))
m = max(a)
d = []
for i in a:
    if i != m:
        d.append(m - i)
z = 0
for i in d:
    z = math.gcd(z, i)
y = 0
for i in d:
    y += i // z
print(y, z)