#python3
import math

n = int(input())
a = [int(i) for i in input().split()]

Max = 0
for i in a :
	Max = max(Max , i)

s , z = 0 , 0
for i in a :
	s += (Max - i)
	z = math.gcd(z , Max - i)

print(s // z , z) 
