from sys import stdin
from math import gcd
n=int(stdin.readline().strip())
s=list(map(int,stdin.readline().strip().split()))
s.sort()
mx=s[-1]
s1=[]
for i in range(n):
    s1.append(mx-s[i])
g=gcd(s1[0],s1[1])
for i in range(2,n):
    g=gcd(g,s1[i])
ans=(mx*n)-sum(s)
ans=ans//g
print(ans,g)
