import math
 
n=int(input())
a=list(map(int,input().split(" ")))
m=max(a)
g=0
if n==2:
    a.sort()
    print(1,m-a[0],sep=" ")
else:
    for i in range(n):
        if a[i]!=m:
            g=math.gcd(g,m-a[i])
    y=0
    for i in range(n):
        y=y+((m-a[i])//g)
    print(y,g,sep=" ")
