from math import gcd
n = int(input())
arr = list(map(int,input().split()))
m = max(arr)
ans = []
for i in range(n):
    if m!=arr[i]:
        ans.append(m-arr[i])
z = ans[0]
for i in range(1,len(ans)):
    z = gcd(ans[i],z)
y = sum(ans)//z
print(y,z)
