import math
n  = int(input())
lis = sorted(map(int,input().split()),reverse = True)
gg = 0
aa=1
ans=0
for i in range(n):
    gg = math.gcd(lis[0]-lis[i],gg)
for i in range(n):
    ans+=((lis[0]-lis[i])//gg)
print(ans,gg)