def gcd(a, b):
    while b > 0:
        a, b = b, a % b
    return a


_ = input()
s = [int(x) for x in input().split()]

m = max(s)
roubadas = [m - x for x in s if x < m]

result = roubadas[0]
for i in roubadas[1:]:
    result = gcd(result, i)

print("%d %d"%(sum(roubadas)/result, result))
 	 		 		  		 	  			 		  				