#  =========     /\       /|    |====/|
#      |        /  \       |    |   / |
#      |       /____\      |    |  /  |
#      |      /      \     |    | /   |
#  ========= /        \  =====  |/====|  
#  code

def main():
    from math import gcd
    n = int(input())
    a = list(map(int,input().split()))
    m = max(a)
    s = sum(a)

    z = 0
    for i in a:
        z = gcd(z , m - i)
    
    y = n*m - s
    y //= z

    print(y,z)
    return

if __name__ == "__main__":
    main()