from sys import stdin,stdout
from math import gcd
for _ in range(1):#int(stdin.readline())):
    n=int(stdin.readline())
    a=list(map(int,stdin.readline().split()))
    mx=max(a)
    stolen=[mx-v for v in a if mx!=v]
    hh=stolen[0]
    for v in stolen[1:]:
        hh=gcd(hh,v)
    ans=sum(v//hh for v in stolen)
    print(ans,sum(stolen)//ans)