from sys import stdin, stdout
import math
n = int(stdin.readline())
arr = [int(x) for x in stdin.readline().split()]

res = 0
for i in range(1,len(arr)):
    res = math.gcd(res, arr[i]-arr[i-1])

maxi = max(arr)
sumi = sum(arr)
z = res
y = int(((maxi*n)-sumi)/res)

stdout.write(str(y) + ' ' + str(z))






