from math import gcd

n, swords = int(input()), list(map(int,input().split()))

swords.sort(reverse = True)
y, z = 0, 0

for i in range(1,n):
	y += (swords[0] - swords[i]) 
	z = gcd(z, swords[0] - swords[i])

print(y//z,z)